diff options
Diffstat (limited to 'silly-malloc/meow.c')
-rw-r--r-- | silly-malloc/meow.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/silly-malloc/meow.c b/silly-malloc/meow.c new file mode 100644 index 0000000..88c7e88 --- /dev/null +++ b/silly-malloc/meow.c @@ -0,0 +1,10 @@ +#define _GNU_SOURCE +#include <stdlib.h> +#include <stdio.h> + +int main () { + char *merow = malloc (9); + sprintf (merow, "meowmeow"); + printf ("%s\n", merow); + free (merow); +} |