Date: Mon, 2 Oct 1995 14:49:30 -0400 (EDT) From: Chuck Robey <chuckr@eng.umd.edu> To: olsenc@ichips.intel.com Cc: questions@freebsd.org Subject: Re: If not gets(), then what? Message-ID: <Pine.SUN.3.91.951002144753.11730A-100000@latte.eng.umd.edu> In-Reply-To: <9510021814.AA35311@dtt034.intel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 Oct 1995 olsenc@ichips.intel.com wrote: > Hello: > > I have a program that uses gets(), and FreeBSD complains about it. > I read the manpage on gets(), and it says it's dangerous, but yet > it doesn't mention any alternatives! > > Suggestions, recommendations, testimonials, confessions? fgets can do the job of gets, with the extra bargain of removing worry over a user overrunning your buffer space, because of the *size* veriable in fgets. Beware of the difference in the handling of newlines, fgets does it differently than gets. Look at the manpage. > > Btw, FreeBSD 2.0.5 RELEASE is rock solid. Very nice job, you guys! > It was nice to finally get rid of Linux. > > Thanks, > > -Clint > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.951002144753.11730A-100000>