mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
FS-2216 partial with renaming
This commit is contained in:
1 parent
bcf7d477e2
commit
24288832b1
16 files changed
+52
-67
No files matched your search
@@ -2921,6 +2921,20 @@ SWITCH_DECLARE(char *) switch_format_number(const char *num)
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(unsigned int) switch_atoui(const char *nptr)
|
||||
{
|
||||
int tmp = atoi(nptr);
|
||||
if (tmp < 0) return 0;
|
||||
else return (unsigned int) tmp;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(unsigned long) switch_atoul(const char *nptr)
|
||||
{
|
||||
long tmp = atol(nptr);
|
||||
if (tmp < 0) return 0;
|
||||
else return (unsigned long) tmp;
|
||||
}
|
||||
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
||||
Reference in new issue
Block a user