scc

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

asctime.c (151B)


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