From 1abb10008fa9d321bbdeda8176dfc83c40e33c71 Mon Sep 17 00:00:00 2001 From: axtloss Date: Wed, 3 Jul 2024 18:38:44 +0200 Subject: silly-malloc: Add project --- silly-malloc/meow.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 silly-malloc/meow.c (limited to 'silly-malloc/meow.c') 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 +#include + +int main () { + char *merow = malloc (9); + sprintf (merow, "meowmeow"); + printf ("%s\n", merow); + free (merow); +} -- cgit v1.2.3