From 62ba2a9ab01e5f2a9b1cd325af8d3112702b7713 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 15 Apr 2024 20:34:58 +0200 Subject: Bug fix and cleanup. --- kernel/libc/string/strncpy.c | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 kernel/libc/string/strncpy.c (limited to 'kernel/libc/string/strncpy.c') diff --git a/kernel/libc/string/strncpy.c b/kernel/libc/string/strncpy.c deleted file mode 100644 index a886895..0000000 --- a/kernel/libc/string/strncpy.c +++ /dev/null @@ -1,11 +0,0 @@ -#include -#include - -// FIXME: Something is weird with this function -char *strncpy(char *dest, const char *src, size_t n) { - char *r = dest; - for (; n && (*dest = *src); n--, src++, dest++) - ; - *dest = '\0'; - return r; -} -- cgit v1.2.3