Comments: Authenticated sender is From: "George Foot" To: "Ilari Kaartinen" Date: Thu, 8 Apr 1999 19:11:12 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: better than gets()? CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) Message-Id: Reply-To: djgpp AT delorie DOT com On 8 Apr 99 at 14:13, Ilari Kaartinen wrote: > gets() crashes whole program if the string taken is longer than the > buffer. Better func' for taking th full *string*. If you use `fgets', you can specify not just the buffer to store the data in, but also the size of the buffer and the stream to read from (`gets' reads from `stdin'). -- George