summaryrefslogtreecommitdiff
path: root/src/libstddjb/timestamp_r.c
blob: 46be7a4fd7f848339d45e14cb0334cf660aa2fc3 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/tai.h>

int timestamp_r (char *s, tain_t *stamp)
{
  if (!tain_wallclock_read(stamp)) return 0 ;
  timestamp_fmt(s, stamp) ;
  return 1 ;
}