lbo@ihwpt.ATT.COM (lew oberlander) (01/08/88)
NOTE: I AM POSTING THE FOLLOWING FOR A FRIEND, JOHN HOBSON, WHO DOES NOT HAVE ACCESS TO NETNEWS. PLEASE DIRECT RESPONSES TO HIM, AT THE E-MAIL ADDRESS GIVEN BELOW. THANK YOU. ................................................................ Yesterday, I wrote the following line of code: fgets(in_line, 100, fp); (I had declared: char line[100]; FILE *fp; and properly opened the file) and I was always getting a NULL return from fgets. When I changed the length of the possible string to 80, it worked fine. Can anyone tell me why? Incidently, the computer was a PYRAMID 98XE, the operating system was UNIX System V Release 2, and the command line was cc -O -s file.c. Since my system does not have netnews, please send any replies to: ...!ihnp4!lb3!hobs Thanks, John Hobson ihnp4!lb3!hobs Illinois Bell Chicago, IL PS If Laura Creighton should happen to see this, would you please send me some mail to let me know how you are.