Code For NonGeek
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[C] Implement strcpy function

Go down

[C] Implement strcpy function Empty [C] Implement strcpy function

Post  Admin Tue Sep 27, 2011 8:32 pm

xtrcpy(string str1, string str2){
char *s1=str1;(target string)
char *s2=str2;(source string)
while(*s2){
*s1=*s2;
s1++;
s2++;
}

cout<<str1;
}

Admin
Admin

Posts : 131
Join date : 2011-08-16

https://codefornongeek.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum