Skip to content

Instantly share code, notes, and snippets.

@Superbil
Last active August 2, 2016 12:57
Show Gist options
  • Save Superbil/a44fb62ca02bf95d944b7b8747018ee1 to your computer and use it in GitHub Desktop.
Save Superbil/a44fb62ca02bf95d944b7b8747018ee1 to your computer and use it in GitHub Desktop.
if (self = [super init]) {
}
return self;
// ->
self = [super init];
if (self) {
}
return self;
////
strcpy(char *s1, const char *s2) {
char *s = s1;
while ((*s++ = *s2++) != 0)
;
return (s1);
}
// ->
strcpy(char *s1, const char *s2) {
char *s = s1;
while (*s2 != 0) {
*s = *s2;
*s2++;
*s++;
}
return (s1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment