mirror of
https://github.com/curl/curl.git
synced 2026-07-24 20:07:16 +03:00
parent
5b5e2f7318
commit
d485177151
4 changed files with 135 additions and 144 deletions
|
|
@ -31,6 +31,12 @@ void Curl_str_init(struct Curl_str *out)
|
|||
out->len = 0;
|
||||
}
|
||||
|
||||
void Curl_str_assign(struct Curl_str *out, const char *str, size_t len)
|
||||
{
|
||||
out->str = str;
|
||||
out->len = len;
|
||||
}
|
||||
|
||||
/* Get a word until the first DELIM or end of string. At least one byte long.
|
||||
return non-zero on error */
|
||||
int Curl_str_until(const char **linep, struct Curl_str *out,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue