mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
lib: use Curl_str_number() for parsing decimal numbers
Instead of strtoul() and strtol() calls. Easier API with better integer overflow detection and built-in max check that now comes automatic everywhere this is used. Closes #16319
This commit is contained in:
parent
130b6891c8
commit
b696fc129b
16 changed files with 180 additions and 202 deletions
|
|
@ -69,7 +69,7 @@ struct pingpong {
|
|||
|
||||
CURLcode (*statemachine)(struct Curl_easy *data, struct connectdata *conn);
|
||||
bool (*endofresp)(struct Curl_easy *data, struct connectdata *conn,
|
||||
char *ptr, size_t len, int *code);
|
||||
const char *ptr, size_t len, int *code);
|
||||
};
|
||||
|
||||
#define PINGPONG_SETUP(pp,s,e) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue