C Language Zemi

  • C language
  • C standard library
  • here

stdio.h header-standard input / output functions, etc.

The stdio.h header is a header that contains standard I / O functions and so on.

Function to output a character string

  • printf function
  • fprintf function
  • sprintf function
  • snprintf function
  • putchar function --output one character

Standard input / output

  • stdout-a pointer to a FILE structure that means a standard output stream
  • stderr-a pointer to a FILE structure that means standard error stream

File input / output

  • fopen function-open file
  • fclose function-close file
  • fgetc function-read one character from a file
  • getc function-read one character from a file
  • fputc function-write one character to the file stream
  • fread function-read from file with specified number of bytes
  • fwrite function-write to file by specifying the number of bytes
  • EOF-a constant that represents the end of the file
  • feof function-check if it is at the end of the file
  • fseek function-sets the position of the file stream position specifier
  • ftell function-get the position of the file stream position specifier

Associated Information

This site is originally Japanese.
Perl Club starts to translate it to English.
If you find wrong expressions, you can report them using Github Issue.
Perl Club