summaryrefslogtreecommitdiff
path: root/src/libstddjb/timestamp_r.c
blob: 6eb8ab75a0ee9c43fe35da3b5a5db360e739ce4f (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_sysclock(stamp)) return 0 ;
  timestamp_fmt(s, stamp) ;
  return 1 ;
}