mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -252,6 +252,16 @@ void ast_join(char *s, size_t len, char * const w[]);
|
||||
*/
|
||||
int ast_get_time_t(const char *src, time_t *dst, time_t _default, int *consumed);
|
||||
|
||||
/*
|
||||
\brief Parse a time (float) string.
|
||||
\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_timeval(const char *src, struct timeval *tv, struct timeval _default, int *consumed);
|
||||
|
||||
/*!
|
||||
* Support for dynamic strings.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user