Skip to content

Instantly share code, notes, and snippets.

@wilkie
Forked from avdi/builtins.c
Created May 3, 2012 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilkie/2583763 to your computer and use it in GitHub Desktop.
Save wilkie/2583763 to your computer and use it in GitHub Desktop.
C builtins
void strcpy(char* dest, char* src) {
src = "aaa";
while(*dest++ = *src++);
}
int main(void) {
char buff[64];
strcpy(buff, "Look ma, ");
strcat(buff, "no #includes");
printf(buff);
return 0;
}
// :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment