Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / system / Wanderer / support.c
blobdc8fab795e8cd38aee0ff9955914d21cdecf887a
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
7 #include <string.h>
9 #include "support.h"
11 BOOL ReadLine(BPTR fh, STRPTR buffer, ULONG size)
13 if (FGets(fh, buffer, size) != NULL)
15 ULONG last = strlen(buffer) - 1;
16 if (buffer[last] == '\n') buffer[last] = '\0';
18 return TRUE;
21 return FALSE;