eg0rmaffin

ft_strcpy

Jul 25th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. char    *ft_strcpy(char *s1, char *s2)
  2. {
  3.     int run = 0;
  4.     while (s2[run] != '\0')
  5.     {
  6.         s1[run] = s2[run];
  7.         run++;
  8.     }
  9.     s1[run + 1] = '\0';
  10.     return (s1);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment