Re: Code Review? memory management in C



Michael Mair wrote:

.... snip ...

Note: Consider using ggets()/fggets() for reading the lines.
These are non-standard but there is at least one public domain
version (by Chuck Falconer).
Advantage: No line length restriction, automatic allocation of
the memory for the line (which means no unnecessary copying in
your case).

Available at <http://cbfalconer.home.att.net/download/ggets.zip>

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


.



Relevant Pages

  • Re: To Garamond: Genesis Commentary
    ... <snip lots> ... do you know how to weigh a mountain? ... Their reading of the Bible states that mountains are ... that particular response came from evolutionists in this newsgroup. ...
    (talk.origins)
  • Re: To Garamond: Genesis Commentary
    ... <snip lots> ... do you know how to weigh a mountain? ... Their reading of the Bible states that mountains are ... that particular response came from evolutionists in this newsgroup. ...
    (talk.origins)
  • Re: We keep lowering insulin dosage but BG readings stay low
    ... We took a BG reading in the evening and she registered a 296 reading ... Her insulin, whether she produces her own or she ... if he can convince the endo to agree with him. ...
    (alt.support.diabetes)
  • Re: Free State Security - part 2
    ... [another big snip] ... Each time you devolve into using terms like "whining" ... You've failed to illustrate how my proposed reading is ... that the earth orbits the sun, Mr Galileo Galilei? ...
    (talk.politics.guns)
  • Re: ot; best books
    ... public domain (as far as I know, all other titles above are now public ... "Foundation" novels were more stimulating reading. ... Thats because the *great* authors of the golden age of sci-fi, ... technology concepts being very outdated by todays standards. ...
    (comp.sys.mac.advocacy)