stdio.h library functions

All C inbuilt functions which are declared in stdio.h header file are given below.

LIST OF INBUILT C FUNCTIONS IN STDIO.H FILE:

Function Description
printf() This function is used to print the character, string, float, integer, octal and hexadecimal values onto the output screen
scanf() This function is used to read a character, string, numeric data from keyboard.
getc() It reads character from file
gets() It reads line from keyboard
getchar() It reads character from keyboard
puts() It writes line to o/p screen
putchar() It writes a character to screen
clearerr() This function clears the error indicators
fopen() All file handling functions are defined in stdio.h header file
fclose() closes an opened file
getw() reads an integer from file
putw() writes an integer to file
fgetc() reads a character from file
putc() writes a character to file
fputc() writes a character to file
fgets() reads string from a file, one line at a time
fputs() writes string to a file
feof() finds end of file
fgetchar reads a character from keyboard
fgetc() reads a character from file
fprintf() writes formatted data to a file
fscanf() reads formatted data from a file
fgetchar reads a character from keyboard
fputchar writes a character from keyboard
fseek() moves file pointer position to given location
SEEK_SET moves file pointer position to the beginning of the file
SEEK_CUR moves file pointer position to given location
SEEK_END moves file pointer position to the end of file.
ftell() gives current position of file pointer
rewind() moves file pointer position to the beginning of the file
putc() writes a character to file
sprint() writes formatted output to string
sscanf() Reads formatted input from a string
remove() deletes a file
fflush() flushes a file
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s