Hi i have written a standard library function 'strcat' on my own, even though the output seems ok, can someone please verify if what i'm doing is right? i get confused using pointers.
void mystrcat(char *a,char *b)
{
while (*a++ != '\0');
*a--;
while (*a++ = *b++);
}
i'm assuming 'a' to be big enough to hold the concatenated value.
-Smith.S