2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
9 #include <aros/debug.h>
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH3(STRPTR
, FGets
,
19 AROS_LHA(BPTR
, fh
, D1
),
20 AROS_LHA(STRPTR
, buf
, D2
),
21 AROS_LHA(ULONG
, buflen
, D3
),
24 struct DosLibrary
*, DOSBase
, 56, Dos
)
27 Read until NEWLINE (\n), EOF is encountered or buflen-1
28 characters have been read. If a NEWLINE is read, it will
29 be the last character in the buffer. The buffer will always
33 fh - Read buffered from this filehandle
34 buf - Put read chars in this buffer
35 buflen - The size of the buffer
38 buf or NULL if the first thing read is EOF.
50 *****************************************************************************/
73 while ((len
<buflen
) && (c
!= '\n'));