Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* appendCharToCharArray(char* array, char a)
- {
- size_t len = strlen(array);
- char* ret = new char[len + 2];
- strcpy(ret, array);
- ret[len] = a;
- ret[len + 1] = '\0';
- return ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement