-----Original Message-----
From: cctalk-bounces(a)classiccmp.org
[mailto:cctalk-bounces@classiccmp.org]On Behalf Of Sean 'Captain Napalm'
Conner
Sent: Friday, November 14, 2003 1:17 PM
To: cctalk(a)classiccmp.org
Subject: Re: 8086 (was Re: more talking to the press.)
Um, that should be:
void foofill(char *start,char *end)
{
while (start < end)
{
*start++ = 0;
}
}
yeah... and, I assume if you specify start and end with the same value, you
want that ONE byte filled with zero, so the test should be:
while (start <= end)
Or even:
void foofill(char *start,char *end)
{
assert(start != NULL);
assert(end != NULL);
assert(start <= end);
do
{
*start++ = 0;
} while (start < end);
}
-spc (8-)