delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/22/21:45:27

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What's the command?
Date: 22 Jul 1999 22:53:11 GMT
Organization: University of Lulea, Sweden
Lines: 13
Message-ID: <7n87cn$e5f$1@news.luth.se>
References: <7mqe9a$2mlh$1 AT nnrp01 DOT ops DOT uunet DOT co DOT za> <4psk3.9156$yD2 DOT 21461 AT newsfeeds DOT bigpond DOT com> <JY6l3.41$K_5 DOT 341628 AT news DOT bctel DOT net> <mfwl3.10957$yD2 DOT 24685 AT newsfeeds DOT bigpond DOT com> <3796D534 DOT 541ED37F AT nochance DOT com>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Edward Hill (ha AT nochance DOT com) wrote:
: And you offered a potentially hazardous function that can overrun the
: input
: buffer.

Well, [fs]scanf isn't so bad. You have the possibility of limiting how
much you want to read. "fgets(buffer, 100, f)" <=> "fscanf(f,
"%100[^\n]", buffer)".


Right,

							MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019