mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:33:33 +03:00
lib: rename curlx_strtoofft to Curl_str_numblanks()
The function is no longer used via the curlx shortcut. Remove the strtoofft.[ch] files. Closes #16642
This commit is contained in:
parent
fc04eca8f8
commit
09a5b2f2de
17 changed files with 53 additions and 160 deletions
|
|
@ -212,6 +212,16 @@ int Curl_str_octal(const char **linep, curl_off_t *nump, curl_off_t max)
|
|||
return str_num_base(linep, nump, max, 8);
|
||||
}
|
||||
|
||||
/*
|
||||
* Parse a positive number up to 63-bit number written in ASCII. Skip leading
|
||||
* blanks. No support for prefixes.
|
||||
*/
|
||||
int Curl_str_numblanks(const char **str, curl_off_t *num)
|
||||
{
|
||||
Curl_str_passblanks(str);
|
||||
return Curl_str_number(str, num, CURL_OFF_T_MAX);
|
||||
}
|
||||
|
||||
/* CR or LF
|
||||
return non-zero on error */
|
||||
int Curl_str_newline(const char **linep)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue