/**
@author: Mathias Van Malderen (tux4life)
*/
void mystrcat(char * s1, const char * s2)
{
    while(*s1) s1++;
    for(; *s1 = *s2; s1++, s2++);
}
1
Contributor
1
Reply
4
Views
7 Years
Discussion Span
Last Post by mvmalderen
0

Or you could rewrite it in a shorter way, thanks to William Hemsworth

void mystrcat(char * s1, const char * s2)
{
    while(*s1++);
    while(*s1++ = *s2++);
}
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.