Thread: Simple Problem
View Single Post
Old 26-04-2005, 05:38 PM   #2
Data
retired
 
Data's Avatar


 
Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
Default

the loops you use to copy a string are flawed.

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

Then it will be allright.
__________________
Flowing with the stream of life
Data is offline                         Send a private message to Data
Reply With Quote