blob: eff9f0749d9d9bbb83f1a717d35985643b330d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $File$ */
#include "file.h"
#ifndef lint
FILE_RCSID("@(#)$File: ascmagic.c,v 1.84 2011/12/08 12:38:24 rrt Exp $")
#endif /* lint */
#include <time.h>
#include <string.h>
/* ctime_r is not thread-safe anyway */
char *
ctime_r(const time_t *t, char *dst)
{
char *p = ctime(t);
if (p == NULL)
return NULL;
memcpy(dst, p, 26);
return dst;
}
|