1. 标准IO的读写函数,分三类
a. 行缓存:遇到新行符(\n)或写满缓存时,即调用系统调用函数
读:fgets, gets, printf, fprintf,sprintf
写:fputs, puts,scanf
一个字符的读写,是否是行缓存?
读:fgetc, getc, getchar
写:fputc, putc,putchar
b. 无缓存:只要用户调这个函数,就会将其内容写到内核中
c. 全
1. 标准IO的读写函数,分三类
a. 行缓存:遇到新行符(\n)或写满缓存时,即调用系统调用函数
读:fgets, gets, printf, fprintf,sprintf
写:fputs, puts,scanf
一个字符的读写,是否是行缓存?
读:fgetc, getc, getchar
写:fputc, putc,putchar
b. 无缓存:只要用户调这个函数,就会将其内容写到内核中
c. 全