char *myStrcat(char *s, const char *t)
{
char *p = s;
if (s == NULL || t == NULL)
return s; /* we need not have to do anything */
while (*s)
s++;
while (*s++ = *t++)
;
return p;
}
Fri, Mar 5, 2010
char *myStrcat(char *s, const char *t)
{
char *p = s;
if (s == NULL || t == NULL)
return s; /* we need not have to do anything */
while (*s)
s++;
while (*s++ = *t++)
;
return p;
}
Leave a Reply
You must be logged in to post a comment.