delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/27/14:31:24

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Paul Wilkins <disk AT paradise DOT net DOT nz>
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: assembly code of the "strange error" - program
References: <WcpNc.640$zS6 DOT 86489 AT news02 DOT tsnz DOT net> <20040727070949 DOT 29244 DOT 00000306 AT mb-m19 DOT aol DOT com> <200407271306 DOT i6RD6e8o010681 AT envy DOT delorie DOT com>
In-Reply-To: <200407271306.i6RD6e8o010681@envy.delorie.com>
Lines: 11
Message-ID: <FaxNc.666$zS6.94831@news02.tsnz.net>
Date: Wed, 28 Jul 2004 06:28:14 +1200
NNTP-Posting-Host: 218.101.50.29
X-Complaints-To: abuse AT tsnz DOT net
X-Trace: news02.tsnz.net 1090952997 218.101.50.29 (Wed, 28 Jul 2004 06:29:57 NZST)
NNTP-Posting-Date: Wed, 28 Jul 2004 06:29:57 NZST
Organization: TelstraClear
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

DJ Delorie wrote:
>> >int U[99]; memset(U, 4, sizeof(U));
>> >memset fills the memory locations used by U with the value 4.
> 
> No, it sets it to 0x04040404.

So long as it's an int array, where is the difference? Is it in my 
understanding of potential implications?

-- 
Paul Wilkins

- Raw text -


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