Skip to content

Instantly share code, notes, and snippets.

@conanak99

conanak99/edit.c Secret

Created Feb 23, 2016
Embed
What would you like to do?
char* mystrcat( char* dest, char* src )
{
while (*dest) dest++;
while (*dest++ = *src++);
return --dest;
}
char bigString[1000];
char *p = bigString;
bigString[0] = '\0';
p = mystrcat(p,"John, ");
p = mystrcat(p,"Paul, ");
p = mystrcat(p,"George, ");
p = mystrcat(p,"Joel ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment