Thread: Simple Problem
View Single Post
Old 26-04-2005, 05:50 PM   #3
NrmMyth
Hero Gamer

 
Join Date: Jan 2005
Location: ,
Posts: 454
Default

Quote:
Originally posted by Data@Apr 26 2005, 07:38 PM
the loops you use to copy a string are flawed.

for(i=strlen(p);i=0;i--)

Then it will be allright.
Code:
for(i=strlen(p);i>=0;i--)
 *	*(pok+i)=*(p+i);
Cool... not cool no I fell like a dumbass...

Thanks Data! k:

Now you have honour off closeing this topic.

...
__________________
Never mess with me when I have a cougar, Never!
NrmMyth is offline                         Send a private message to NrmMyth
Reply With Quote