diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
commit | 8a19547957a86bed3f58c9abc1ac218d04698faf (patch) | |
tree | ed7ccc6f3a8902915dfe6c9bf763fc45d752b3c4 /lib/stpncpy.c | |
parent | fmt (diff) | |
download | comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.gz comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.bz2 comus-8a19547957a86bed3f58c9abc1ac218d04698faf.zip |
break apart c libaray
Diffstat (limited to 'lib/stpncpy.c')
-rw-r--r-- | lib/stpncpy.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/stpncpy.c b/lib/stpncpy.c deleted file mode 100644 index 4e0def6..0000000 --- a/lib/stpncpy.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <string.h> - -char *stpncpy(char *restrict dest, const char *restrict src, size_t n) -{ - char *d = dest; - for (; (*d = *src) && n; d++, src++, n--) - ; - memset(d, 0, n); - return d; -} |