摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 void writelog(const char* log) 12 { 13 time_t tDate; 14 struct tm* eventTime... 阅读全文
posted @ 2016-07-20 19:15
千秋此意
阅读(372)
评论(0)
推荐(0)
摘要:
1 int main(int arg, char *args[]) 2 { 3 4 // char s[]="abc.txt"; 5 FILE* p=fopen(args[1],"r+"); 6 if(p==NULL) 7 printf("error is %s\n",strerror(errno)); 8 else 9 ... 阅读全文
posted @ 2016-07-20 17:21
千秋此意
阅读(188)
评论(0)
推荐(0)
摘要:
输入字符不在屏幕上显示 阅读全文
posted @ 2016-07-20 16:31
千秋此意
阅读(225)
评论(0)
推荐(0)
摘要:
fstat和stat的功能基本一致,只是函数中的参数不同 阅读全文
posted @ 2016-07-20 15:54
千秋此意
阅读(3341)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 int main(int arg, char *args[]) 11 { 12 13 // char s[]="abc.txt"; 14 int fd = open(args[... 阅读全文
posted @ 2016-07-20 15:31
千秋此意
阅读(175)
评论(0)
推荐(0)
摘要:
1 1 #include 2 2 #include 3 3 #include 4 4 #include 5 5 #include 6 6 #include 7 7 #include 8 8 #include 9 9 10 10 int main(int arg,char *args[]) 11 11 { 12 12 13 13 if(arg0) 2... 阅读全文
posted @ 2016-07-20 15:10
千秋此意
阅读(147)
评论(0)
推荐(0)

浙公网安备 33010602011771号