W
William L. Bahn
I recently challenged one of my students to figure out a way to determine if
fgets() actually received the entire contents of the input string. When he
was having trouble figuring it out even after I recommended he look
carefully at the difference between the two cases when the input was short
enough and when the input was too long, I suggested he look at the FAQ for
this newsgroup. He came back and said he couldn't find anything, so I went
and looked and, although I thought I remembered seeing it there before, I
couldn't find anything either.
Could someone provide the topic number that deals with trapping this
occurance (if one exists)?
I found 12.20 ( http://www.eskimo.com/~scs/C-faq/q12.20.html ) right away
and this seems a natural spot to place a link to the topic that actually
goes into this issue at length.
Is there a version of the FAQ someplace that is searchable? Or, if the
eskimo site is searchable, could someone explain how? I haven't downloaded
the ASCII version and I'm assuming I can search it, but I can't find an
on-line version of it which, from a utility standpoint, is reasonably
important if I'm going to get students to use it since they move from
machine to machine a lot.
TIA
fgets() actually received the entire contents of the input string. When he
was having trouble figuring it out even after I recommended he look
carefully at the difference between the two cases when the input was short
enough and when the input was too long, I suggested he look at the FAQ for
this newsgroup. He came back and said he couldn't find anything, so I went
and looked and, although I thought I remembered seeing it there before, I
couldn't find anything either.
Could someone provide the topic number that deals with trapping this
occurance (if one exists)?
I found 12.20 ( http://www.eskimo.com/~scs/C-faq/q12.20.html ) right away
and this seems a natural spot to place a link to the topic that actually
goes into this issue at length.
Is there a version of the FAQ someplace that is searchable? Or, if the
eskimo site is searchable, could someone explain how? I haven't downloaded
the ASCII version and I'm assuming I can search it, but I can't find an
on-line version of it which, from a utility standpoint, is reasonably
important if I'm going to get students to use it since they move from
machine to machine a lot.
TIA