2 * Ullrich von Bassewitz, 11.08.1998
4 * char* fgets (char* s, int size, FILE* f);
15 /*****************************************************************************/
17 /*****************************************************************************/
21 char* __fastcall__ fgets (char* s, unsigned size, FILE* f)
36 /* Get next character */
37 if ((c = fgetc (f)) == EOF) {
40 if ((f->f_flags & _FERROR) != 0 || i == 0) {
41 /* ERROR or EOF on first char */
44 /* EOF with data already read */
52 /* Stop at end of line */
58 /* Terminate the string */