stdio.h
Overview
Related Modules:
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
Summary
Typedefs
Functions
fopen (const char __restrict path, const char restrict mode) |
Opens the file stored in the specified path based on the given mode. |
remove (const char pathname) |
|
rename (const char oldpath, const char newpath) |
|
Changes the position of a specified stream to a new position. |
|
Obtains the current value of the file position indicator for a specified file stream. |
|
Sets the position indicator of a specified stream to the beginning of the file. |
|
Obtains the current file position of a specified stream and writes it to the pos parameter. |
|
Sets the file position indicator for a specified file stream. |
|
fread (void *restrict ptr, size_t size, size_t nmemb, FILE __restrict stream) |
|
fwrite (const void restrict ptr, size_t size, size_t nmemb, FILE *restrict stream) |
|
getchar (void) |
|
Writes a character into the position pointed to by a specified stream. |
|
putchar (int c) |
|
Reads a line of characters from a specified file stream and stores it into the string pointed to by s. |
|
gets (char s) |
Reads a line of characters from the stdin and stores it in the buffer. |
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. |
printf (const char format,…) |
Formats arguments based on format and prints formatted data to the stdout. |
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. |
snprintf (char str, size_t size, const char format,…) |
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. |
Prints formatted data from a variable argument list to a specified file stream. |
|
vsprintf (char str, const char format, va_list ap) |
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. |
scanf (const char format,…) |
Reads formatted data from the stdin and stores the data to the additional arguments based on 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. |
vscanf (const char format, va_list ap) |
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. |
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. |
perror (const char msg) |
Prints the last error occurred during a call to a system or library function to the standard error output stream (stderr). |
Sets the mode and size of the buffer for a specified stream. |
|
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) |
|
Sets the position of the next input or output operation on a specified file stream. |
|
Obtains the current value of the file position indicator for a specified file stream. |
|
dprintf (int fd, const char format,…) |
|
vdprintf (int fd, const char format, va_list ap) |
Prints formatted data from a variable argument list to a specified file. |
ftrylockfile (FILE filehandle) |
|
funlockfile (FILE filehandle) |
|
getc_unlocked (FILE stream) |
Obtains a character from a specified file stream without locking the file stream or checking whether it is locked. |
getchar_unlocked (void) |
|
putc_unlocked (int c, FILE stream) |
Writes a character to a specified file stream with the thread remains unlocked. |
putchar_unlocked (int c) |
Writes a character to the stdout with the thread remains unlocked. |
tempnam (const char dir, const char prefix) |
|
setlinebuf (FILE f) |
|
fgetc_unlocked (FILE stream) |
Reads a character from the file pointed to by stream with the thread remains unlocked. |
fputc_unlocked (int c, FILE stream) |
Writes a character to the file stream pointed to by stream at the current position. |
ferror_unlocked (FILE stream) |
|
Reads a line of data from the current position of a specified file stream. |
|
asprintf (char strp, const char fmt,…) |
|
vasprintf (char **strp, const char fmt, va_list ap) |
Prints formatted data from a variable argument list to a specified character string. |