摘要:
不同类型的非格式化IO 输入函数 fgetc ferror ungetc fgets fread 输出函数 fputc fputs 函数执行时间 阅读全文
posted @ 2022-08-23 21:01
starc的miao
阅读(25)
评论(0)
推荐(0)
摘要:
函数 type参数 打开方式 关闭 阅读全文
posted @ 2022-08-23 20:47
starc的miao
阅读(15)
评论(0)
推荐(0)
摘要:
全缓冲 行缓冲 不带缓冲 setbuf mode参数 函数动作 fflush 阅读全文
posted @ 2022-08-23 19:53
starc的miao
阅读(40)
评论(0)
推荐(0)
摘要:
fwide FILE对象指针 流对象 阅读全文
posted @ 2022-08-23 19:35
starc的miao
阅读(19)
评论(0)
推荐(0)
摘要:
rename函数 oldname参数 代码rename #include <stdio.h> int main () { int ret; char oldname[] = "file.txt"; char newname[] = "newfile.txt"; ret = rename(oldnam 阅读全文
posted @ 2022-08-23 18:44
starc的miao
阅读(27)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/Cashey1991/article/details/8333954 /* Function:函数指针数组 */ // 头文件 #include <stdio.h> #include <stdlib.h> #include <string.h> // 宏定 阅读全文
posted @ 2022-08-23 18:40
starc的miao
阅读(39)
评论(0)
推荐(0)
摘要:
时间字段 区别 函数更改时间作用 函数 阅读全文
posted @ 2022-08-23 18:17
starc的miao
阅读(25)
评论(0)
推荐(0)
摘要:
chdir getcwd #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define MAX 512 int main(int argc, char * argv[]) { // 方法一 char path[MAX]; pat 阅读全文
posted @ 2022-08-23 11:24
starc的miao
阅读(40)
评论(0)
推荐(0)
摘要:
mkdir rmdir 权限位 #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> int main(int argc, char argv[]) { char * buf = "./a"; int isCreat = mkdir 阅读全文
posted @ 2022-08-23 11:17
starc的miao
阅读(55)
评论(0)
推荐(0)
摘要:
当声明一个字符串数组的时候,常常需要把它初始化为空串。总结起来有以下三种方式: (1) char str[10]=""; (2) char str[10]={'\0'}; (3) char str[10]; str[0]='\0'; 第(1)(2)种方式是将str数组的所有元素都初始化为'\0',而 阅读全文
posted @ 2022-08-23 02:35
starc的miao
阅读(206)
评论(0)
推荐(0)

浙公网安备 33010602011771号