Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
asctime.c
Go to the documentation of this file.
1 #define _GNU_SOURCE
2 #include <time.h>
3 
4 char* asctime(const struct tm* tm)
5 {
6  static char buf[26];
7  return asctime_r(tm, buf);
8 }
Definition: time.h:41
char * asctime_r(const struct tm *restrict tm, char *restrict buf)
Definition: asctime_r.c:7
char * asctime(const struct tm *tm)
Definition: asctime.c:4