Advertisement
Guest User

Untitled

a guest
Sep 13th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void strcpy(char *s, char *t){
  4. while((*s++ = *t++) != '\0'){
  5. ;
  6. }
  7. }
  8.  
  9. int main(){
  10. char a[] = "hello world";
  11. char b[] = "hello the world";
  12. strcpy(a,b);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement