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:
Daniel Stenberg 2004-04-07 07:30:40 +00:00
parent f052cbee19
commit cf1f46e1ca
6 changed files with 62 additions and 19 deletions

View file

@ -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':