getc and putc Functions The simplest I/O functions are getc and putc. These are analogous to getchar and putchar functions and handle one character at a time. The putcfunction writes a character to the file associated with a file pointer. The syntax is as shown below: 1 putc(ch, file–pointer); Similarly the function getc is used to read a character from a file associated with a file-pointer. The syntax is as shown below: 1 getc(file–pointer) The file pointer moves by one character position for every operation of getcor putc. The getc will return an end-of-file marker EOF, when end of the
The post What are getc() and putc() functions in C Programming appeared first on Coding Security.
What are getc() and putc() functions in C Programming
read more
Tidak ada komentar:
Posting Komentar