aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/strings.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-23 17:13:57 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-23 17:13:57 +0000
commit9c4950dff36fc6083132969ac592045c5cda464e (patch)
treea6044b368ffd4c159c9584c7fcf17347cb8cee67 /include/asterisk/strings.h
parentefb2e34d2948dbc76d3be4a3a8805f7baba44bcc (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: http://svn.digium.com/svn/asterisk/trunk@10871 f38db490-d61c-443f-a65b-d21fe96a405b
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! */