%FPUTC

%FPUTC


%FPRINTF Index Level %FPUTS
Syntax variable = %FPUTC( character, (char*)stream )
Category BASIC
Type C Function
Description writes the character specified by "character" on the named output "stream".

Note: The character is passed as a number. Normal usage would override the type (see example below). The Unix "putc()" and "putchar()" cannot be used because they are macros, rather than functions.

If successful, the character is returned as a number, else EOF (-1) is returned.

If the character is contained in a FlashBASIC dynamic array, an explicit (char) type override must be used, otherwise a pointer would be passed to the C function.
Options
See Also c function CFUNCTION %FOPEN %FCLOSE %FPRINTF %FPUTS
Example c='a'
n=%fputc( (char)c, (char*)strm )
Warnings
Compatibility D3/Unix
%FPRINTF Index Level %FPUTS