summaryrefslogtreecommitdiff
path: root/include/asterisk/strings.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-02-23 17:13:57 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-02-23 17:13:57 +0000
commit302c9430013d40e82a3e9925e96921ba40650db1 (patch)
treea6044b368ffd4c159c9584c7fcf17347cb8cee67 /include/asterisk/strings.h
parentc3447c7cce376c33d3ef7bf07ab5e4776f221534 (diff)
add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
update pbx_dundi to use ast_get_time_t eliminate some compiler warnings git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/strings.h')
-rw-r--r--include/asterisk/strings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index a48520ad6..c9015544a 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -228,9 +228,10 @@ void ast_join(char *s, size_t len, char * const w[]);
\param src String to parse
\param dst Destination
\param _default Value to use if the string does not contain a valid time
+ \param consumed The number of characters 'consumed' in the string by the parse (see 'man sscanf' for details)
\return zero on success, non-zero on failure
*/
-int ast_get_time_t(const char *src, time_t *dst, time_t _default);
+int ast_get_time_t(const char *src, time_t *dst, time_t _default, int *consumed);
/* The realloca lets us ast_restrdupa(), but you can't mix any other ast_strdup calls! */