summaryrefslogtreecommitdiffstats
path: root/bin/sh/mystring.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-01-01 22:15:38 +0000
committerjilles <jilles@FreeBSD.org>2012-01-01 22:15:38 +0000
commitbbd60abdf3ff8bb1ab2fbb59c1a4df2ee213f69e (patch)
tree1cafc1ccade2c4531c25c0e982ee19b006f1b1a4 /bin/sh/mystring.c
parent40498371e855eb79559c6a9e6df09240b2ca0b05 (diff)
downloadFreeBSD-src-bbd60abdf3ff8bb1ab2fbb59c1a4df2ee213f69e.zip
FreeBSD-src-bbd60abdf3ff8bb1ab2fbb59c1a4df2ee213f69e.tar.gz
sh: Remove unused function scopyn().
Diffstat (limited to 'bin/sh/mystring.c')
-rw-r--r--bin/sh/mystring.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/sh/mystring.c b/bin/sh/mystring.c
index 53d703d..67617ec 100644
--- a/bin/sh/mystring.c
+++ b/bin/sh/mystring.c
@@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$");
*
* equal(s1, s2) Return true if strings are equal.
* scopy(from, to) Copy a string.
- * scopyn(from, to, n) Like scopy, but checks for overflow.
* number(s) Convert a string of digits to an integer.
* is_number(s) Return true if s is a string of digits.
*/
@@ -67,24 +66,6 @@ char nullstr[1]; /* zero length string */
/*
- * scopyn - copy a string from "from" to "to", truncating the string
- * if necessary. "To" is always nul terminated, even if
- * truncation is performed. "Size" is the size of "to".
- */
-
-void
-scopyn(const char *from, char *to, int size)
-{
-
- while (--size > 0) {
- if ((*to++ = *from++) == '\0')
- return;
- }
- *to = '\0';
-}
-
-
-/*
* prefix -- see if pfx is a prefix of string.
*/
OpenPOWER on IntegriCloud