mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:13:31 +03:00
lib: use Curl_str_* instead of strtok_r()
Helps avoid extra mallocs. Gets rid of the private strtok_r implementation. Closes #16360
This commit is contained in:
parent
076444ec46
commit
676de7f580
26 changed files with 102 additions and 397 deletions
|
|
@ -75,4 +75,10 @@ int Curl_str_octal(const char **linep, curl_off_t *nump, curl_off_t max);
|
|||
return non-zero on error */
|
||||
int Curl_str_newline(const char **linep);
|
||||
|
||||
/* case insensitive compare that the parsed string matches the
|
||||
given string. */
|
||||
int Curl_str_casecompare(struct Curl_str *str, const char *check);
|
||||
|
||||
int Curl_str_nudge(struct Curl_str *str, size_t num);
|
||||
|
||||
#endif /* HEADER_CURL_STRPARSE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue