mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 06:34:19 +00:00
tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4805 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
324f6b00aa
commit
33efc5eeb5
6 files changed
+68
-17
No files matched your search
@@ -54,6 +54,19 @@ SWITCH_BEGIN_EXTERN_C
|
||||
#else
|
||||
#define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR))
|
||||
#endif
|
||||
|
||||
static inline switch_bool_t switch_is_digit_string(char *s) {
|
||||
|
||||
while(s && *s) {
|
||||
if (*s < 48 || *s > 57) {
|
||||
return SWITCH_FALSE;
|
||||
}
|
||||
s++;
|
||||
}
|
||||
|
||||
return SWITCH_TRUE;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Evaluate the truthfullness of a string expression
|
||||
\param expr a string expression
|
||||
|
||||
Reference in new issue
Block a user