diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-14 12:34:51 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-14 12:34:51 +1000 |
commit | aad2c19da7609e1a4c08ef11aab03c29a30090d8 (patch) | |
tree | 4f20d8f670dcfb28a6b1ee93209b7dce23b8ff85 /source3/lib | |
parent | 9d62ee2a815570b24a099b3960ed23942eebb3e7 (diff) | |
download | samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.tar.gz samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.tar.bz2 samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.zip |
s3-lib Remove unused str_ascii_charnum()
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_str.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index fdb06425e2..a57a53fce2 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -274,24 +274,6 @@ size_t str_charnum(const char *s) return ret; } -/** - Count the number of characters in a string. Normally this will - be the same as the number of bytes in a string for single byte strings, - but will be different for multibyte. -**/ - -size_t str_ascii_charnum(const char *s) -{ - size_t ret, converted_size; - char *tmpbuf2 = NULL; - if (!push_ascii_talloc(talloc_tos(), &tmpbuf2, s, &converted_size)) { - return 0; - } - ret = strlen(tmpbuf2); - TALLOC_FREE(tmpbuf2); - return ret; -} - bool trim_char(char *s,char cfront,char cback) { bool ret = false; |