Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
asctime.c File Reference
#include <time.h>
Include dependency graph for asctime.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

char * asctime (const struct tm *tm)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 1 of file asctime.c.

Function Documentation

◆ asctime()

char* asctime ( const struct tm tm)

Definition at line 4 of file asctime.c.

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

References asctime_r().