aboutsummaryrefslogtreecommitdiffstats
path: root/src/string/strcat.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-17 03:30:10 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-17 03:30:10 +0100
commit5e57b83aae16d44318b9eed1b2cecd0591adc981 (patch)
treee1cf6290396be7c3251e95606c8a316058ce52a6 /src/string/strcat.c
parentsplit err.c (diff)
downloadslibc-5e57b83aae16d44318b9eed1b2cecd0591adc981.tar.gz
slibc-5e57b83aae16d44318b9eed1b2cecd0591adc981.tar.bz2
slibc-5e57b83aae16d44318b9eed1b2cecd0591adc981.tar.xz
m + typo + split (almost all) string/*.c
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/string/strcat.c')
-rw-r--r--src/string/strcat.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/string/strcat.c b/src/string/strcat.c
index 2205f39..de5c63e 100644
--- a/src/string/strcat.c
+++ b/src/string/strcat.c
@@ -35,26 +35,3 @@ char* strcat(char* restrict whither, const char* restrict whence)
return whither;
}
-
-/**
- * Concatenate a string to the end of another string.
- * The resulting strings must not overlap with the appended string.
- *
- * The use of this function is often a really bad idea.
- *
- * @param whither The string to extend.
- * @param whence The string to append.
- * @param maxlen The maximum number of bytes to copy.
- * NOTE that if the resulting string at least this
- * long, no NUL byte will be written to `whither'.
- * On the otherhand, if the resultnig string is
- * shorter, `whither` will be filled with NUL bytes
- * until this amount of bytes have been written.
- * @return `whither` is returned.
- */
-char* strncat(char* restrict whither, const char* restrict whence, size_t maxlen)
-{
- strncpy(whither + strlen(whither), whence, maxlen);
- return whither;
-}
-