From eb8dd9dca1228af0cd132f515509051ecfabf6f6 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 14 Apr 2025 17:32:06 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20250414'. --- src/regress/lib/libc/stpncpy/Makefile | 3 --- src/regress/lib/libc/stpncpy/stpncpy_test.c | 24 ------------------------ 2 files changed, 27 deletions(-) delete mode 100644 src/regress/lib/libc/stpncpy/Makefile delete mode 100644 src/regress/lib/libc/stpncpy/stpncpy_test.c (limited to 'src/regress/lib/libc/stpncpy') diff --git a/src/regress/lib/libc/stpncpy/Makefile b/src/regress/lib/libc/stpncpy/Makefile deleted file mode 100644 index 9333934da6..0000000000 --- a/src/regress/lib/libc/stpncpy/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -PROG=stpncpy_test - -.include diff --git a/src/regress/lib/libc/stpncpy/stpncpy_test.c b/src/regress/lib/libc/stpncpy/stpncpy_test.c deleted file mode 100644 index 63b7d25e53..0000000000 --- a/src/regress/lib/libc/stpncpy/stpncpy_test.c +++ /dev/null @@ -1,24 +0,0 @@ -/* $OpenBSD: stpncpy_test.c,v 1.1 2012/07/11 10:46:23 naddy Exp $ */ - -/* - * Public domain, 2012, Christian Weisgerber - */ - -#include - -int main(void) -{ - char dst[8]; - char *src = "abcdef"; - - if (stpncpy(dst, src, 5) != dst + 5) - return 1; - if (stpncpy(dst, src, 6) != dst + 6) - return 1; - if (stpncpy(dst, src, 7) != dst + 6) - return 1; - if (stpncpy(dst, src, 8) != dst + 6) - return 1; - - return 0; -} -- cgit v1.2.3-55-g6feb