| |||
| Home > RealView Debugger Predefined Macros > Alphabetical predefined macro reference > fputc | |||
Writes a byte to a file.
int fputc (byte,fileid) intbyte; intfileid;
where:
byteThe byte to be written.
fileidThe ID number of the file where the next byte is
to be written. This must be a user-defined .fileid
This macro writes the contents of the next byte to a file.
You must define the identity of the file with either the fopen macro
or the FOPEN command.
The file written to must be opened in write mode, for example:
fopen(100,"c:\\myfiles\\data_out.txt","w").
Example shows
you how to use fputc in a macro.