scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

asctime.c (190B)


      1 #include <time.h>
      2 #undef asctime
      3 
      4 #include <stdio.h> // TODO: remove me!
      5 char *
      6 asctime(const struct tm *tm)
      7 {
      8 	static char buf[30];
      9 
     10 	strftime(buf, sizeof(buf), "%c\n", tm);
     11 	return buf;
     12 }