mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
renamed the strtoofft() macro to curlx_strtoofft() to adjust to the curlx_*
concept, and added lib/README.curlx to explain details about it
This commit is contained in:
parent
f052cbee19
commit
cf1f46e1ca
6 changed files with 62 additions and 19 deletions
|
|
@ -1035,7 +1035,7 @@ static int str2offset(curl_off_t *val, char *str)
|
|||
#endif
|
||||
|
||||
/* this is a duplicate of the function that is also used in libcurl */
|
||||
*val = strtoofft(str, NULL, 0);
|
||||
*val = curlx_strtoofft(str, NULL, 0);
|
||||
|
||||
if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE)
|
||||
return 1;
|
||||
|
|
@ -1319,7 +1319,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
{
|
||||
/* We support G, M, K too */
|
||||
char *unit;
|
||||
curl_off_t value = strtoofft(nextarg, &unit, 0);
|
||||
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
|
||||
switch(nextarg[strlen(nextarg)-1]) {
|
||||
case 'G':
|
||||
case 'g':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue