summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-03-01 16:16:16 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-03-01 16:16:16 +0100
commitd776ac03c3ce8a9090b847f20d2cdd16d745441f (patch)
tree70af5ecd9797cf840197ee48ef85f9913e5a50d1 /lib/util/util.h
parent7b9381fb4f0db661a32ab884fb621cb6806ecd32 (diff)
downloadsamba-d776ac03c3ce8a9090b847f20d2cdd16d745441f.tar.gz
samba-d776ac03c3ce8a9090b847f20d2cdd16d745441f.tar.bz2
samba-d776ac03c3ce8a9090b847f20d2cdd16d745441f.zip
Move next_token_talloc() to top-level.
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 27f94cd685..1f6e3b193b 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -204,6 +204,21 @@ _PUBLIC_ void display_set_stderr(void);
/* The following definitions come from lib/util/util_str.c */
+bool next_token_talloc(TALLOC_CTX *ctx,
+ const char **ptr,
+ char **pp_buff,
+ const char *sep);
+
+/**
+ * Get the next token from a string, return false if none found. Handles
+ * double-quotes. This version does not trim leading separator characters
+ * before looking for a token.
+ */
+bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx,
+ const char **ptr,
+ char **pp_buff,
+ const char *sep);
+
/**
Trim the specified elements off the front and back of a string.