summaryrefslogtreecommitdiff
path: root/src/string/strncpy_s.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 00:00:11 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 00:00:11 -0500
commitf10737a4ee4a818acdc28fa2e32c85a74f47eb5c (patch)
treeef6999fa663f3e6f6e6137ab6218ff68ff197dd3 /src/string/strncpy_s.c
parent9222a64f2e86db0d94b977d79c274d1d07003b0a (diff)
update to 1:1 checked functions
Diffstat (limited to 'src/string/strncpy_s.c')
-rw-r--r--src/string/strncpy_s.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string/strncpy_s.c b/src/string/strncpy_s.c
index 1fdb3cb5..81ff253b 100644
--- a/src/string/strncpy_s.c
+++ b/src/string/strncpy_s.c
@@ -24,6 +24,8 @@ errno_t strncpy_s(char * restrict s1, rsize_t s1max, const char * restrict s2, r
return 0;
}
+CHECK_4(errno_t, 0, strncpy_s, char * restrict, rsize_t, const char *, rsize_t)
+
/***
The fn(strncpy) function copies up to arg(n) bytes from the string at arg(s2)
to arg(s1). If a char(\0) is encountered, null characters are appended to