BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kgets - reads from kstdin until a newline or EOF

LIBRARY CALL

char *kgets(
  char *buffer)

INPUT

OUTPUT

none

RETURN VALUE

returns the string read from kstdin or NULL upon error.

DESCRIPTION

This function is a replacement for the system gets() routine. The only difference is that kgets() uses the khoros transport mechanisms. The routine will get a single line from kstdin. It reads until a newline or end of file is encountered.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/include/kutils/kfile.h

SEE ALSO

kutils(3)

COPYRIGHT

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