diff options
author | Antony Kellermann | 2018-07-19 18:05:46 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-07-19 18:05:46 -0400 |
commit | 8e59ff5ff8c7f412b8d9ae360f5671f24e10e1a5 (patch) | |
tree | a8d8f7091889c8e38122566efd47a24dc582292f /string-tick.h | |
parent | d2d72dd287eb97293c952fef041aff5310c96c43 (diff) | |
download | aur-8e59ff5ff8c7f412b8d9ae360f5671f24e10e1a5.tar.gz |
Added is_str_number function
Diffstat (limited to 'string-tick.h')
-rw-r--r-- | string-tick.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/string-tick.h b/string-tick.h index c360eba124a1..9825fd055ad4 100644 --- a/string-tick.h +++ b/string-tick.h @@ -111,4 +111,11 @@ void pointer_alloc_check(void* alloced); */ int is_string_json_array(const String* pString); +/** + * Returns 1 if the string contains only digits or 0 otherwise + * @param string char* + * @return 1 is number, 0 if not + */ +int is_str_number(const char* string); + #endif
\ No newline at end of file |