Curl_dyn_init(&buf, MAX_ALTSVC_LINE);
while(Curl_get_line(&buf, fp)) {
char *lineptr = Curl_dyn_ptr(&buf);
- while(*lineptr && ISBLANK(*lineptr))
+ while(ISBLANK(*lineptr))
lineptr++;
if(*lineptr == '#')
/* skip commented lines */
size_t len;
const char *protop;
const char *p = *ptr;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
protop = p;
while(*p && !ISBLANK(*p) && (*p != ';') && (*p != '='))
/* skip option if name is too long */
option[0] = '\0';
}
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(*p != '=')
return CURLE_OK;
p++;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(!*p)
return CURLE_OK;
return CURLE_BAD_FUNCTION_ARGUMENT;
/* skip all leading space letters */
- while(*header && ISBLANK(*header))
+ while(ISBLANK(*header))
header++;
*value = header;
return CURLE_OK;
do {
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(strncasecompare("max-age", p, 7)) {
bool quoted = FALSE;
return CURLE_BAD_FUNCTION_ARGUMENT;
p += 7;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(*p++ != '=')
return CURLE_BAD_FUNCTION_ARGUMENT;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(*p == '\"') {
p++;
}
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(*p == ';')
p++;
Curl_dyn_init(&buf, MAX_HSTS_LINE);
while(Curl_get_line(&buf, fp)) {
char *lineptr = Curl_dyn_ptr(&buf);
- while(*lineptr && ISBLANK(*lineptr))
+ while(ISBLANK(*lineptr))
lineptr++;
/*
* Skip empty or commented lines, since we know the line will have a
/* Find the first non-space letter */
start = header;
- while(*start && ISSPACE(*start))
+ while(ISSPACE(*start))
start++;
end = strchr(start, '\r');
auth++;
if(*auth == ',') /* if we are on a comma, skip it */
auth++;
- while(*auth && ISSPACE(*auth))
+ while(ISSPACE(*auth))
auth++;
}
start = &headerline[hlen];
/* pass all whitespace */
- while(*start && ISSPACE(*start))
+ while(ISSPACE(*start))
start++;
/* find the end of the header line */
if(ptr) {
optr = ptr;
ptr++; /* pass the semicolon */
- while(*ptr && ISSPACE(*ptr))
+ while(ISSPACE(*ptr))
ptr++;
if(*ptr) {
/* we require a colon for this to be a true header */
ptr++; /* pass the colon */
- while(*ptr && ISSPACE(*ptr))
+ while(ISSPACE(*ptr))
ptr++;
if(*ptr || semicolonp) {
*/
const char *p = hd;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(!strncmp(p, "HTTP/", 5)) {
p += 5;
}
else if(data->conn->handler->protocol & CURLPROTO_RTSP) {
const char *p = hd;
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
if(!strncmp(p, "RTSP/", 5)) {
p += 5;
scheme = Curl_checkheaders(data, STRCONST(HTTP_PSEUDO_SCHEME));
if(scheme) {
scheme += sizeof(HTTP_PSEUDO_SCHEME);
- while(*scheme && ISBLANK(*scheme))
+ while(ISBLANK(*scheme))
scheme++;
infof(data, "set pseudo header %s to %s", HTTP_PSEUDO_SCHEME, scheme);
}
store = value;
/* skip leading whitespace */
- while(*value && ISBLANK(*value))
+ while(ISBLANK(*value))
value++;
while(*value) {
int space = 0;
- while(*value && ISBLANK(*value)) {
+ while(ISBLANK(*value)) {
value++;
space++;
}
return NULL;
++value;
- while(*value && ISBLANK(*value))
+ while(ISBLANK(*value))
++value;
len = strlen(value);
return CURLE_BAD_CONTENT_ENCODING;
header += strlen("Digest");
- while(*header && ISBLANK(*header))
+ while(ISBLANK(*header))
header++;
return Curl_auth_decode_digest_http_message(header, digest);
/* Obtain the input token, if any */
header += strlen("Negotiate");
- while(*header && ISBLANK(*header))
+ while(ISBLANK(*header))
header++;
len = strlen(header);
if(checkprefix("NTLM", header)) {
header += strlen("NTLM");
- while(*header && ISSPACE(*header))
+ while(ISSPACE(*header))
header++;
if(*header) {
name = headers->data;
namelen = ptr - headers->data;
ptr++; /* pass the colon */
- while(*ptr && ISSPACE(*ptr))
+ while(ISSPACE(*ptr))
ptr++;
if(*ptr) {
value = ptr;
name = headers->data;
namelen = ptr - headers->data;
ptr++; /* pass the semicolon */
- while(*ptr && ISSPACE(*ptr))
+ while(ISSPACE(*ptr))
ptr++;
if(!*ptr) {
/* quirk #2, send an empty header */
bool match = FALSE;
/* pass blanks */
- while(*p && ISBLANK(*p))
+ while(ISBLANK(*p))
p++;
token = p;
/* Find the first non-space letter */
start = header + 8;
- while(*start && ISBLANK(*start))
+ while(ISBLANK(*start))
start++;
if(!*start) {
const char *start, *end;
start = transport;
while(start && *start) {
- while(*start && ISBLANK(*start) )
+ while(ISBLANK(*start) )
start++;
end = strchr(start, ';');
if(checkprefix("interleaved=", start)) {
*num = 0; /* clear by default */
DEBUGASSERT((base == 10) || (base == 16));
- while(*str && ISBLANK(*str))
+ while(ISBLANK(*str))
str++;
rc = base == 10 ?