You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
393 B
C
17 lines
393 B
C
#include <time.h>
|
|
#include <scan.h>
|
|
#include <buffer.h>
|
|
|
|
main() {
|
|
char buf[100];
|
|
time_t s,t;
|
|
buffer_put(buffer_1,buf,fmt_httpdate(buf,time(&s)));
|
|
buffer_putnlflush(buffer_1);
|
|
buffer_puts(buffer_1,buf+scan_httpdate(buf,&t));
|
|
buffer_putnlflush(buffer_1);
|
|
buffer_putulong(buffer_1,s);
|
|
buffer_puts(buffer_1," vs. ");
|
|
buffer_putulong(buffer_1,t);
|
|
buffer_putnlflush(buffer_1);
|
|
}
|