The %fgetc() function returns the next character from the named input stream.
var = %fgetc((char*)strea)m
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.
c=(char)%fgetc((char*) stream) crt c
Note the character type casting to override the default (int) type.