Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc!uxc.cso.uiuc.edu!uxd.cso.uiuc.edu!uxa.cso.uiuc.edu!sam20285 From: sam20285@uxa.cso.uiuc.edu Newsgroups: comp.sys.amiga Subject: fgets problem with LC 5.0 Message-ID: <111400026@uxa.cso.uiuc.edu> Date: 23 Mar 89 06:51:00 GMT Lines: 19 Nf-ID: #N:uxa.cso.uiuc.edu:111400026:000:951 Nf-From: uxa.cso.uiuc.edu!sam20285 Mar 23 00:51:00 1989 Has anyone who is currently using Lattice 5.0 through 5.02 experienced problems with fgets? The problem I seem to be having is one where fgets does not wait for either a '\n' or a NULL ('\0'). Fgets just returns a NULL as if an eof has been reached. However, fgets has never recieved any input. BTW, the code works fine for PDC 3.3 (BETA) which I know works correctly because I have the libraries source. I suspect the problem (assuming one exists) is with buffer input (maybe also output) with Lattice. Any suggestions of ideas would be helpful. ====================================================== Steve March URH 720 Oglesby march@uiucmath.math.uiuc.edu 1001 West College Ct march@symcom.math.uiuc.edu Urbana, IL 61801 sam20285@uxa.cso.uiuc.edu (H) (217) 332-5251 march@mrcNeXT.cso.uiuc.edu "Vote appathetic!! (on second thought, don't bother)" ======================================================