The %fgetc() function returns the next character from the named input stream.
Syntax
var = %fgetc((char*)stream) |
Description
The character is returned as a number. Normal usage would override the type (see the example below). The getc() and getchar() system functions cannot be used because they are macros, rather than functions.
Example(s)
c=(char)%fgetc((char*)stream) crt c |
Note the character type casting to override the default (int) type.
See Also