(C) 1998 AROS - The Amiga Research OS
NAME
#include <proto/dos.h>
STRPTR FGets (fh , buf , buflen)
LOCATION
In DOSBase at offset 56
SYNOPSIS
BPTR fh
STRPTR buf
ULONG buflen
FUNCTION
Read until NEWLINE (\n), EOF is encountered or buflen-1 characters have been read. If a NEWLINE is read, it will be the last character in the buffer. The buffer will always be \0-terminated.
INPUTS
fh
Read buffered from this filehandle
buf
Put read chars in this buffer
buflen
The size of the buffer
RESULT
buf or NULL if the first thing read is EOF.
EXAMPLE
SEE ALSO
NOTES
BUGS
INTERNALS
HISTORY