Created
February 18, 2020 05:57
-
-
Save unknowntpo/ff9616ddd02f26ee3882fd29f11064dd to your computer and use it in GitHub Desktop.
Most beautiful strcpy.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* copy t to s ; pointer version 1 */ | |
void strcpy(char *s, char *t) { | |
while (*s++ = *t++) | |
; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment