About stdio.h header file in C language

stdio stands for Standard Input Output. stdio.h is a header file which has the information for taking input and showing output. Some functions which are defined under this stdio.h header file is given bellow.

  • printf() — printf() function is used to print anything. It is the most common function in C.
  • scanf() — scanf() function is used to take input from user. scanf() is also a very common function in C programming.
  • fprintf() — fprintf() function is used to print something to a file in C.
  • fscanf() — fscanf() is also defined inside stdio.h header file which is used to take input from a file.
  • getchar() — getchar() function is used to take character from the keyboard.
  • putchar() — putchar() is used to print a character to the screen in C programming.
  • getc() — getc() is defined inside this header file and is used to read any character from a file.
  • putc() — putc() is used to write a character to the file.
  • gets() — gets() can read the line from keyboard which we entered.
  • puts() — puts() function is use to write a line to the screen.
  • fopen() — fopen() is defined inside the stdio header file and is used to open a file.
  • fclose() — This function is also defined under the stdio.h header file.
  • fgetc() — fgetc() function is used to read any character from a file.
  • fputc() — fputc() function can write a character to the file which is also defined inside this header file.
  • fgets() — fgets() is defined inside the stdio.h header file and is used to read a line from the file.
  • fputs() — It is defined to this header file which is used to write any string to a file.
  • fgetchar() — fgetchar() is used to read any character from the keyboard.
  • fputchar() — It can write any character to keyboard.
  • fseek() — This function moves the file pointer position to the given location we expect.
  • remove() — remove() function can delete a file which is defined under the stdio.h header file.
  • rewind() — rewind() function is used to move the position of file pointer at the beginning of file.
  • getw() — getw() function can read any integer from the file.
  • putw() — putw() is also defined inside this useful header file and is used to write any integer to the file.

Previous pageFile handling in C

Next pageconio.h header file