If anyone is interested in the solution to this, there was a respone on linuxnewbie.org
The solution is
The reason being is because the first while statement was testing for '/0', would find it but still increment past it, thus screwing up the testing of the next while statement. From what I understand anyways.Code:void strcat(*char s1, *char s2) { while(*++s1); while(*s1++ = *s2++); }


Reply With Quote

Bookmarks