From: Kevin Newsgroups: comp.os.msdos.djgpp Subject: Re: What's wrong with this code snippet ? Date: Sun, 17 Oct 1999 19:00:26 +0100 Message-ID: <5QwKOHomZUjg6WTIhW3AW308wAZl@4ax.com> References: NNTP-Posting-Host: reality-bytes.demon.co.uk X-NNTP-Posting-Host: reality-bytes.demon.co.uk:212.228.30.60 X-Trace: news.demon.co.uk 940183300 nnrp-04:15954 NO-IDENT reality-bytes.demon.co.uk:212.228.30.60 X-Complaints-To: abuse AT demon DOT net X-Newsreader: Forte Agent 1.6/32.525 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks everyone for help, I guess the thing that threw me was seeing memset prototyped as #include void *memset(void *buffer, int ch, size_t num); but in light of recent experience and what I've learnt here, I'm prepared to accept that the second argument can't be greater than char. Fair enough, I'll use a for loop. Thanks all, Kevin.