标准I/O、系统I/O之间的关系

||标准IO|系统IO(低级IO)|
|:---|:---|:---|
|文件描述符|FILE *fp|int fd|
|打开|fopen、freopen、fdopen|open|
|关闭|fclose|close|
|读|fread、getc、fgetc、gets、fgets、getchar|read|
|写|fwrite、putc、fputc、puts、fputs、putchar、|write|
|文件偏移|fseek、ftell、rewind|lseek|

 

详细见:https://www.cnblogs.com/aACMer/articles/15133899.html

posted @ 2021-08-13 11:00  一只小菜菜鸟  阅读(134)  评论(0)    收藏  举报