1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdio.h> #include <time.h> void web_header(char *fmt) { printf("%s\r\n\r\n", fmt); } void web_echo(char *fmt, ...) { printf(fmt); } int web_time(void) { time_t unixepoch; unixepoch = time(NULL); return unixepoch; }