标准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

浙公网安备 33010602011771号