Mail Archives: djgpp/1998/08/11/06:06:52
this loop is executing strlen everytime so when you overwrite the last 0
character the size changes. i recomend that you use something like this
int len;
len=(int)strlen(name):
for(int c = i; c < len;c++) name[c] = name[c + 1];
Chia wrote:
> Well, I commented out code and found that in parseTitle, I found that
> the loop
>
> for(int c = i; c < (int)strlen(name);c++) name[c] = name[c + 1];
>
> was causing the problems.
>
aditya
--
--------------------------------------------------
Aditya Kapur Wipro Infotech Ltd.
Sr. Systems Engg. 40/1A Lavelle Road,
Ph 080-2215010 Extn 109 Bangalore -1, INDIA
---------------------------------------------------
- Raw text -