文章分类 -  1.Func

useful function. portability
显示时间
摘要:C语言打印时间方法(1)#include #include int main(){ time_t rawtime; struct tm * timeinfo; char string[128]; time(&rawtime); timeinfo = localtime(&rawtime); strftime(string, sizeof string, "%a %b %d, %I:%M %p", timeinfo); printf("time=%s\n", string);} 阅读全文

posted @ 2013-06-25 17:12 cfox 阅读(108) 评论(0) 推荐(0)

c语言UDP TCP通信实例(linux)
摘要:c语言UDP,TCP的客户端,服务端实现。 阅读全文

posted @ 2013-02-27 17:58 cfox 阅读(1251) 评论(0) 推荐(0)

编程小技巧
摘要:一些小技巧 阅读全文

posted @ 2012-07-25 11:18 cfox 阅读(186) 评论(0) 推荐(0)

导航