Go to the source code of this file.
|
ParameterError | add2list (struct curl_slist **list, const char *ptr) |
|
int | check_protocol (const char *str) |
| Check if the given string is a protocol supported by libcurl. More...
|
|
static CURLcode | checkpasswd (const char *kind, const size_t i, const bool last, char **userpwd) |
|
void | cleanarg (char *str) |
|
long | delegation (struct OperationConfig *config, char *str) |
|
ParameterError | file2memory (char **bufp, size_t *size, FILE *file) |
|
ParameterError | file2string (char **bufp, FILE *file) |
|
int | ftpcccmethod (struct OperationConfig *config, const char *str) |
|
int | ftpfilemethod (struct OperationConfig *config, const char *str) |
|
CURLcode | get_args (struct OperationConfig *config, const size_t i) |
|
static char * | my_useragent (void) |
|
struct getout * | new_getout (struct OperationConfig *config) |
|
long | proto2num (struct OperationConfig *config, long *val, const char *str) |
|
static ParameterError | str2double (double *val, const char *str, long max) |
|
ParameterError | str2num (long *val, const char *str) |
|
ParameterError | str2offset (curl_off_t *val, const char *str) |
| Parses the given string looking for an offset (which may be a larger-than-integer value). More...
|
|
ParameterError | str2tls_max (long *val, const char *str) |
|
ParameterError | str2udouble (double *valp, const char *str, long max) |
|
ParameterError | str2unum (long *val, const char *str) |
|
#define ENABLE_CURLX_PRINTF |
int check_protocol |
( |
const char * |
str | ) |
|
Check if the given string is a protocol supported by libcurl.
- Parameters
-
- Returns
- PARAM_OK protocol supported
-
PARAM_LIBCURL_UNSUPPORTED_PROTOCOL protocol not supported
-
PARAM_REQUIRES_PARAMETER missing parameter
Definition at line 376 of file tool_paramhlp.c.
static CURLcode checkpasswd |
( |
const char * |
kind, |
|
|
const size_t |
i, |
|
|
const bool |
last, |
|
|
char ** |
userpwd |
|
) |
| |
|
static |
void cleanarg |
( |
char * |
str | ) |
|
static char* my_useragent |
( |
void |
| ) |
|
|
static |
long proto2num |
( |
struct OperationConfig * |
config, |
|
|
long * |
val, |
|
|
const char * |
str |
|
) |
| |
static ParameterError str2double |
( |
double * |
val, |
|
|
const char * |
str, |
|
|
long |
max |
|
) |
| |
|
static |
Parses the given string looking for an offset (which may be a larger-than-integer value).
The offset CANNOT be negative!
- Parameters
-
val | the offset to populate |
str | the buffer containing the offset |
- Returns
- PARAM_OK if successful, a parameter specific error enum if failure.
Definition at line 397 of file tool_paramhlp.c.
ParameterError str2udouble |
( |
double * |
valp, |
|
|
const char * |
str, |
|
|
long |
max |
|
) |
| |