Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char sz1[123] = "SONY",
- sz2[123] = "_Picnures";
- void _strcat(char *, char *);
- ///////////////////////////////////////////////////////////////////////////////
- int main() //
- {
- _strcat(sz1, sz2);
- printf(sz1);
- return 0;
- }
- ///////////////////////////////////////////////////////////////////////////////
- void _strcat(char *p1, char *p2)
- {
- int L = 0;
- while(p1[++L]);
- for(int i = 0; p1[L++] = p2[i]; i++);
- p1[L] = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement