int myfun(char *sourcebuf)
{
char *destbuf;
char ch;
while (*sourcebuf != '\0')
{
*destbuf++=*sou rcebuf++; --crashed here
};
return 1;
}
Can any one explain why it is crashed?
Thankyou...
{
char *destbuf;
char ch;
while (*sourcebuf != '\0')
{
*destbuf++=*sou rcebuf++; --crashed here
};
return 1;
}
Can any one explain why it is crashed?
Thankyou...
Comment