stdio.h
Description:
Declares common functions used for performing input and output (I/O) operations.
You can use the functions provided in this file to perform the I/O operations required during development. Distinguished by I/O targets, there are standard I/O, file stream I/O, and string I/O.
Since:
1.0
Version:
1.0
Opens the file stored in the specified path based on the given mode. |
|
(FILE fd) |
|
rename (const char oldpath, const char newpath) |
|
(FILE fp) |
|
(FILE stream) |
|
(FILE fp) |
|
(FILE fp) |
|
(FILE fp, long offset, int whence) |
Changes the position of a specified stream to a new position. |
(FILE fp) |
Obtains the current value of the file position indicator for a specified file stream. |
(FILE stream) |
Sets the position indicator of a specified stream to the beginning of the file. |
(FILE stream, fpos_t pos) |
Obtains the current file position of a specified stream and writes it to the pos parameter. |
(FILE fp, const fpos_t pos) |
Sets the file position indicator for a specified file stream. |
(void *restrict ptr, size_t size, size_t nmemb, FILE __restrict stream) |
|
(const void restrict ptr, size_t size, size_t nmemb, FILE *restrict stream) |
|
(FILE stream) |
|
ungetc (int c, stream) |
|
fputc (int c, stream) |
Writes a character into the position pointed to by a specified stream. |
putc (int c, stream) |
|
putchar (int c) |
|
(char s, int size, FILE stream) |
Reads a line of characters from a specified file stream and stores it into the string pointed to by s. |
Reads a line of characters from the stdin and stores it in the buffer. |
|
fputs (const char s, stream) |
Writes a character string (excluding the terminating null character) to a specified file stream. |
puts (const char s) |
Writes a character string and appends a new-line character to the stdout. |
Formats arguments based on format and prints formatted data to the stdout. |
|
fprintf ( stream, const char format,…) |
Formats arguments based on format and prints formatted data to a specified file stream. |
sprintf (char str, const char format,…) |
Prints formatted data from a variable argument list to a specified string. |
Prints formatted data of a maximum of size bytes from a variable argument list to a specified string. |
|
vprintf (const char format, va_list ap) |
Prints formatted data from a variable argument list to the stdout. |
(FILE stream, const char format, va_list ap) |
Prints formatted data from a variable argument list to a specified file stream. |
Prints formatted data from a variable argument list to a specified string. |
|
vsnprintf (char str, size_t size, const char format, va_list ap) |
Prints formatted data of a maximum of size bytes from a variable argument list to a specified string. |
Reads formatted data from the stdin and stores the data to the additional arguments based on format. |
|
fscanf ( stream, const char format,…) |
Reads formatted data from a specified file stream and stores it based on format into the locations pointed to by the variable arguments. |
sscanf (const char str, const char format,…) |
Reads data from a character string pointed to by str and stores it based on format into the locations pointed to by the variable arguments. |
Reads data from the stdin and stores it based on format into the locations pointed to by the elements in the variable argument list identified by ap. |
|
vfscanf ( stream, const char format, va_list ap) |
Reads data from a specified file stream and stores it based on format into the locations pointed to by the elements in the variable argument list identified by ap. |
vsscanf (const char str, const char format, va_list ap) |
Reads data from a specified string and stores it based on format into the locations pointed to by the elements in the variable argument list identified by ap. |
Prints the last error occurred during a call to a system or library function to the standard error output stream (stderr). |
|
setvbuf ( stream, char buf, int mode, size_t size) |
Sets the mode and size of the buffer for a specified stream. |
setbuf ( stream, char buf) |
|
fmemopen (void buf, size_t size, const char mode) |
Opens a memory stream that allows the access mode specified by mode. |
open_memstream (char ptr, size_t size) |
|
pclose ( f) |
|
fileno ( fp) |
|
fseeko ( fp, off_t offset, int whence) |
Sets the position of the next input or output operation on a specified file stream. |
ftello ( fp) |
Obtains the current value of the file position indicator for a specified file stream. |
dprintf (int fd, const char format,…) |
|
Prints formatted data from a variable argument list to a specified file. |
|
ftrylockfile ( filehandle) |
|
funlockfile ( filehandle) |
|
getc_unlocked ( stream) |
Obtains a character from a specified file stream without locking the file stream or checking whether it is locked. |
getchar_unlocked (void) |
|
(int c, FILE stream) |
Writes a character to a specified file stream with the thread remains unlocked. |
Writes a character to the stdout with the thread remains unlocked. |
|
getdelim (char lineptr, size_t n, int delim, stream) |
|
getline (char lineptr, size_t n, stream) |
|
tempnam (const char dir, const char prefix) |
|
(FILE f, char buf, size_t size) |
|
(FILE f) |
|
(FILE stream) |
|
(FILE stream) |
Reads a character from the file pointed to by stream with the thread remains unlocked. |
(int c, FILE stream) |
Writes a character to the file stream pointed to by stream at the current position. |
(FILE stream) |
|
(FILE stream) |
|
(int w, FILE stream) |
|
(FILE stream, size_t len) |
Reads a line of data from the current position of a specified file stream. |
vasprintf (char **strp, const char fmt, va_list ap) |
Prints formatted data from a variable argument list to a specified character string. |