Home | History | Annotate | Download | only in demos

Lines Matching defs:cPtr

1152     char *cPtr;
1153 cPtr = (char*)lunarg_ppm;
1154 if ((unsigned char*)cPtr >= (lunarg_ppm + lunarg_ppm_len) || strncmp(cPtr, "P6\n", 3)) {
1157 while(strncmp(cPtr++, "\n", 1));
1158 sscanf(cPtr, "%u %u", width, height);
1162 while(strncmp(cPtr++, "\n", 1));
1163 if ((unsigned char*)cPtr >= (lunarg_ppm + lunarg_ppm_len) || strncmp(cPtr, "255\n", 4)) {
1166 while(strncmp(cPtr++, "\n", 1));
1171 memcpy(rowPtr, cPtr, 3);
1174 cPtr += 3;
1182 char header[256], *cPtr, *tmp;
1187 cPtr = fgets(header, 256, fPtr); // P6
1188 if (cPtr == NULL || strncmp(header, "P6\n", 3)) {
1194 cPtr = fgets(header, 256, fPtr);
1195 if (cPtr == NULL) {
1208 if (cPtr == NULL || strncmp(header, "255\n", 3)) {