
------------------------------------------------------------------------------
9. Read a character from the text file. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fca_getc
[Syntax]
#include <bios.h>
int fca_getc( void ) ;
[Argument]
------
[Return]
Returns the number of characters read when successful. Return -1 if
any error occurrs or EOF is detected.
[Description]
When called, this function reads one character from the text file
opened by the fca_fopen() function.
(Note) When MS-DOS format is used in the FANUC Handy File, this
function cannot be used. ISO code and EIA code are the only
codes that this function can handle.
[Example]
Following sample program reads and displays a file, character by
character, from the device connected to the first channel.
#include <stdio.h>
#include <crt.h>
#include <data.h>
#include <bios.h>
int example( void )
{
ser_t r_para ;
int ret ;
char name[ 18 ], mode = 'r', c ;