From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/tests/posix/strdupa.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 lib/mlibc/tests/posix/strdupa.c (limited to 'lib/mlibc/tests/posix/strdupa.c') diff --git a/lib/mlibc/tests/posix/strdupa.c b/lib/mlibc/tests/posix/strdupa.c deleted file mode 100644 index c79de8e..0000000 --- a/lib/mlibc/tests/posix/strdupa.c +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif -#include -#include - -int main() { - char test[19] = "Hello mlibc World!"; - char *alloca_ed = strdupa(test); - assert(!strcmp(test, alloca_ed)); - - char *trimmed = strndupa(test, 5); - assert(!strcmp("Hello", trimmed)); -} -- cgit v1.2.3