Created
June 5, 2015 15:37
-
-
Save nicksieger/063f81a02b23b5b92b4c to your computer and use it in GitHub Desktop.
Zero fucks given
This file contains 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
$ cat fucksgiven.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct aFuck {} Fuck; | |
int main (int argc, char** argv) | |
{ | |
Fuck * given = (Fuck*) malloc(argc * sizeof(Fuck)); | |
printf("You gave %lu fucks\n", sizeof(*given)); | |
free(given); | |
return 0; | |
} | |
$ gcc fucksgiven.c | |
$ ./a.out many fucks | |
You gave 0 fucks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment