summaryrefslogtreecommitdiff
path: root/libc/misc/time/asctime.c
blob: 9d5772335a631c33f4cfcebccf42b7137d519013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <time.h>
#include <errno.h>

extern void __asctime();


char * asctime (__const struct tm *timeptr)
{
    static char __time_buf[26];
    if (timeptr == NULL) {
	__set_errno (EINVAL);
	return NULL;
    }
    __asctime(__time_buf, timeptr);
    return __time_buf;
}