summaryrefslogtreecommitdiff
path: root/silly-malloc/meow.c
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-07-03 18:38:44 +0200
committeraxtloss <axtlos@getcryst.al>2024-07-03 18:38:44 +0200
commit1abb10008fa9d321bbdeda8176dfc83c40e33c71 (patch)
tree2e3c2589a1ec6d30aac8abdb23f05fe54db7a215 /silly-malloc/meow.c
downloadrandom-1abb10008fa9d321bbdeda8176dfc83c40e33c71.tar.gz
random-1abb10008fa9d321bbdeda8176dfc83c40e33c71.tar.bz2
silly-malloc: Add project
Diffstat (limited to 'silly-malloc/meow.c')
-rw-r--r--silly-malloc/meow.c10
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);
+}