Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
getc - get byte from stream
&pagelevel(4)&pagelevel
Syntax | #include <stdio.h> int getc(FILE *stream); |
Description | The getc() function is equivalent to fgetc() , except that if it is implemented as a macro it may evaluate stream more than once, so the argument should never be an expression with side effects. getc() is defined both as a function and as a macro.
getc(stdin) is identical to getchar() .
The getc_unlocked() function is functionally equivalent to getc() except that it is not implemented as a thread-safe function. For this reason, it can only be safely used in a multithreaded program if the thread that calls it owns the corresponding (FILE *) object. This is the case after successfully calling the flockfile() or ftrylockfile() functions. |
Return val. | See fgetc() . |
Errors | See fgetc() . |
Notes | See fgetc() . |
See also | fgetc() , putc() , putchar_unlocked() , stdio.h .
|