Re: Is this string input function safe?



Josh Sebastian wrote:

.... snip ...

CBFalconer has posted code to his "ggets" function (search the
archives), which is an excellent implementation of the kind of thing
you're trying to do. I have my own which behaves a little differently,
but his is already out there and probably much more peer-reviewed than
mine. Even if you stick with a home-grown one, I suggest you study his.

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: Is this string input function safe?
    ... CBFalconer has posted code to his "ggets" function (search the ... archives), which is an excellent implementation of the kind of thing ... Boeing Associate Technical Fellow ...
    (comp.lang.c)
  • Re: How to force fscanf to find only data on a single input line?
    ... Well, I certainly never saw [Pat Foley's ggets objection], ... There must be two CBFalconers then, ... also indicates how seriously I took any such objection at the time. ... If you had taken it more seriously, ggets would be a better function. ...
    (comp.lang.c)
  • Re: Does structure order matter?
    ... > CBFalconer wrote in article ... >> You don't show the ggets code, which is thus highly suspect. ... Please don't top-post. ...
    (comp.lang.c)
  • Re: Cant figure out why scanf does this
    ... or the non-portable ggets(), (search this group for posts from ... 'CBFalconer' with 'ggets' as a keyword), to read in an entire line and ...
    (comp.lang.c)
  • Re: Cant figure out why scanf does this
    ... or the non-portable ggets(), (search this group for posts from ... 'CBFalconer' with 'ggets' as a keyword), to read in an entire line and ...
    (comp.lang.c)