Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void strcpys(char *s, char *t);
  4. int main() {
  5. char *ms;
  6. char *mt;
  7.  
  8. mt = "ABCDEFGAAA,AAAAA";
  9. strcpys(ms, mt);
  10. printf("%sn", ms);
  11. printf("%sn", mt);
  12. return 0;
  13. }
  14.  
  15. void strcpys(char *s, char *t) {
  16. while ((*s = *t) != '') {
  17. s++;
  18. t++;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement