summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-14 12:50:19 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-14 06:27:31 +0200
commit3d7998bce1f3366e99f5b4f42d3eae934c1539b7 (patch)
treecd741347deaf9aec2cc3b506542bca816e72cce1 /source3/lib
parentb1873be59b7858253d065db5fbb2ca5791de7476 (diff)
downloadsamba-3d7998bce1f3366e99f5b4f42d3eae934c1539b7.tar.gz
samba-3d7998bce1f3366e99f5b4f42d3eae934c1539b7.tar.bz2
samba-3d7998bce1f3366e99f5b4f42d3eae934c1539b7.zip
s3-lib Remove very unused (#if 0) strncpyn
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 06:27:31 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 1a430d528c..13b415070d 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -474,31 +474,6 @@ char *StrnCpy(char *dest,const char *src,size_t n)
return(dest);
}
-#if 0
-/**
- Like strncpy but copies up to the character marker. always null terminates.
- returns a pointer to the character marker in the source string (src).
-**/
-
-static char *strncpyn(char *dest, const char *src, size_t n, char c)
-{
- char *p;
- size_t str_len;
-
- p = strchr_m(src, c);
- if (p == NULL) {
- DEBUG(5, ("strncpyn: separator character (%c) not found\n", c));
- return NULL;
- }
-
- str_len = PTR_DIFF(p, src);
- strncpy(dest, src, MIN(n, str_len));
- dest[str_len] = '\0';
-
- return p;
-}
-#endif
-
/**
Check if a string is part of a list.
**/