BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kfgetc - get a character from the data transport stream

LIBRARY CALL

int kfgetc(
   kfile *file)

INPUT

OUTPUT

none

RETURN VALUE

The character read on success, EOF if an error is encountered.

DESCRIPTION

This function is a replacement for the system "fgetc()" routine; kfgetc() supports all khoros data transport mechanisms, not just Unix files.

The routine gets a single character from the data transport stream, and moves the data transport pointer ahead by one character. If the character could not be read, EOF is returned; otherwise, the character that is read is returned.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/kstdio.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.