Lines Matching defs:ptr
423 char *ptr;
428 ptr = &httppath[npath];
429 while(ptr >= httppath) {
430 if(*ptr == '/')
432 ptr--;
436 if(*ptr == '/') {
445 if(!strncmp("/verifiedserver", ptr, 15)) {
451 if(!strncmp("/quit", ptr, 5)) {
457 ptr++; /* skip the slash */
459 req->testno = strtol(ptr, &ptr, 10);
580 char *ptr;
583 ptr = strrchr(line, '/');
585 if(ptr) {
586 ptr++; /* skip the slash */
589 while(*ptr && !ISDIGIT(*ptr))
590 ptr++;
592 req->testno = strtol(ptr, &ptr, 10);
629 char *ptr = line + 15;
631 while(*ptr && ISSPACE(*ptr))
632 ptr++;
633 endptr = ptr;
635 clen = strtoul(ptr, &endptr, 10);
636 if((ptr == endptr) || !ISSPACE(*endptr) || (ERANGE == errno)) {
638 logmsg("Found invalid Content-Length: (%s) in the request", ptr);
1013 char *ptr = NULL;
1106 error = getpart(&ptr, &count, "reply", partbuf, stream);
1112 buffer = ptr;
1116 free(ptr);
1125 free(ptr);
1134 free(ptr);
1141 free(ptr);
1165 free(ptr);
1221 free(ptr);
1232 free(ptr);
1239 free(ptr);
1245 ptr = cmd;
1247 if(2 == sscanf(ptr, "%31s %d", command, &num)) {
1268 ptr = strchr(ptr, '\n');
1269 if(ptr)
1270 ptr++;
1272 ptr = NULL;
1273 } while(ptr && *ptr);