123456789101112131415161718192021222324 |
- #include <time.h>
- #include "log.h"
- #include "message_file.h"
- int main()
- {
- message_file mf(stdin);
- unsigned char b[2048];
- char m[2048];
- uint64_t time=0;
- int len;
- while((len=mf.get_line(&time,(char*)b,sizeof(b),m))>0)
- {
- mf.put_line(stdout,time,(char*)b,len);
- }
- return 0;
- }
|