Hey, i've been having this problem that i just cant figure out...
for( count = 1; count < 7 ;count++ )
{
sprintf(buf1,"%s",argument );
holder1 = buf1;
sprintf(buf2,"%s",ch->pok_name[count] );
holder2 = buf2;
if( strlen(argument) > strlen(ch->name[count]))
{
for( increment = 0; increment < strlen(ch->name[count]) + 1; increment++
)
{
string1 = holder1[increment];
sprintf(buf1,"%c",string1);
string2 = holder2[increment];
sprintf(buf2,"%c",string2);
sprintf(buf3,"String1: %c String2:
%c",string1,string2);
log_string(buf3);
}
}
}
and here's what the log spits out, as you can see its not doing what it's
supposed to on the second loop, but only on the second loop
Thu Jun 17 14:09:23 2004 :: String1: a String2: R
Thu Jun 17 14:09:23 2004 :: String1:
Thu Jun 17 14:09:23 2004 :: String1: o String2: m
Thu Jun 17 14:09:23 2004 :: String1: l String2: b
Thu Jun 17 14:09:23 2004 :: String1: l String2: o
Thu Jun 17 14:09:23 2004 :: String1: o String2:
_________________________________________________________________
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines