aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r--src/nvim/strings.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index 20fa35ed1c..2a0014c6c1 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -301,17 +301,6 @@ void del_trailing_spaces(char_u *ptr)
}
/*
- * Like strncpy(), but always terminate the result with one NUL.
- * "to" must be "len + 1" long!
- */
-void vim_strncpy(char_u *restrict to, const char_u *restrict from, size_t len)
- FUNC_ATTR_NONNULL_ALL
-{
- STRNCPY(to, from, len);
- to[len] = NUL;
-}
-
-/*
* Like strcat(), but make sure the result fits in "tosize" bytes and is
* always NUL terminated.
*/