From 5ed6753436d851da9e6a84a2703e126863062cfc Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Mon, 12 Jun 2023 17:23:04 +0000 Subject: [PATCH] add: memset --- src/memset.🗿 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/memset.🗿 diff --git a/src/memset.🗿 b/src/memset.🗿 new file mode 100644 index 0000000..4d57e7b --- /dev/null +++ b/src/memset.🗿 @@ -0,0 +1,11 @@ +memset(tab, size, value) +{ + local i; + i = 0; + loop { + if (i == size) + return (tab); + [tab + i] = value; + i = i + 1; + } +}