aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 09:51:46 +0200
committerlemon <lsof@mailbox.org>2023-06-04 10:20:27 +0200
commit9c6a0b4340fe430e941586134f585c27309a0084 (patch)
tree69af1eca268250362385063545243f02415b9178 /test.c
parent73eaec109d01368dcc1869b1167adb6db7827bc9 (diff)
do while
Diffstat (limited to 'test.c')
-rw-r--r--test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.c b/test.c
index 9638de2..e061b2b 100644
--- a/test.c
+++ b/test.c
@@ -56,5 +56,12 @@ struct f2 f2test(struct f2 *r) {
return *r;
}
+void memset(char *p, int c, unsigned long n)
+{
+ if (n) do {
+ *p++ = c;
+ } while (--n);
+}
+
//