getchar | _gettchar | Read a character from standard input. |
putchar | _puttchar | Write a character to stdout. |
getc | _gettc | Read a character from a stream. |
fgetc | _fgettc | fgetc is equivalent to getc, but is implemented only as a function, rather than as a function and a macro. |
putc | _puttc | Write a character to a stream |
fputc | _fputtc | Equivalent to putc, but implemented only as a function, rather than as a function and a macro. |
|
|
|
gets | _getts | Get a line from the stdin stream. gets then replaces the newline character with a null character ('/0') before returning the line. |
fgets | _fgetts | Get a string from a stream. the fgets function retains the newline character. |
puts | _putts | Write a string to stdout. replacing the string's terminating null character ('/0') with a newline character ('/n') in the output stream. |
fputs | _fputfs | Write a string to a stream. |
|
|
|
fread |
| Reads data from a stream. |
fwrite |
| Writes data to a stream. |
|
|
|
_read |
| Reads data from a file. |
_write |
| Writes data to a file. |
_open |
| Opens a file. |
_create |
| Creates a new file. |
_close |
| Closes a file. |
C functions for file operation
最新推荐文章于 2023-07-24 19:09:08 发布