running program c
-
The getchar () function in C
the function int getchar (void) in library c takes a character (an unsigned char) from stdin. this function is equivalent to the getc function with the parameter stdin. -
Putchar () function in C
the function int putchar (int char) in standard c library writes a character (an unsigned char) defined by the char parameter to stdout. -
The function ungetc () in C
the function int ungetc (int char, file * stream) in the c library standard pushes the char character (an unsigned char) onto the stream given to the next character to be read. -
Function tmpfile () in C
function file * tmpfile (void) in standard c library create temporary files in wb + mode. the temporary file created will be automatically deleted when the stream is closed (fclose function) or when the program ends. -
The function gets () in C
the char * gets (char * str) function in standard c library reads a line from stdin and stores it inside the string pointed by str. it stops when the end-of-file or newline character is encountered (new line) is read. -
Function fscanf () in C
the int fscanf function (file * stream, const char * format, ...) in library c reads the input formatted from a stream. -
Function scanf () in C
the function int scanf (const char * format, ...) in library c standard reads input that has been formatted from stdin. -
The function sscanf () in C
the function int sscanf (const char * str, const char * format, ...) in library c standard reads the input formatted from a string. -
Function fputs () in C
the function int fputs (const char * str, file * stream) in the standard c library writes a string to the specified stream (not writing null characters). -
Function feof () in C
the int feof function (file * stream) in the standard library c checks the end-of-file indicator for the given stream. -
Function freopen () in C
function file * freopen (const char * filename, const char * mode, file * stream) in library c attaches a new filename with the given stream and at the same time closes the old file in stream.