cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/17/14:42:41

From: Kevin <krugman AT nospam DOT demon DOT co DOT uk>
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: <c6wJONRNMABaX1eVyyz+aTSlhqUz AT 4ax DOT com>
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
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 <string.h>

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.

- Raw text -


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