C QUESTIONS AND CODES
C Questions and Corresponding codes
Tuesday, August 3, 2010
C CODE FOR strcat() function
/*******MY STRCAT FUNCTION *************/
char *myStrcat(char *s, const char *t)
{
char *p = s;
if (s == NULL || t == NULL)
return s;
while (*s)
s++;
while (*s++ = *t++);
return p;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
counter
No comments:
Post a Comment