Lines Matching defs:ptr
135 char* ptr;
142 ptr = line;
143 while (isspace(*ptr))
144 ptr++;
145 if (*ptr == '#' || !*ptr) /* comment or blank */
147 if (sscanf(ptr, "%31[a-zA-Z_0-9] =", name) != 1) {
154 while (*ptr != '=')
155 ptr++;
156 ptr++;
157 if (sscanf(ptr, "%d", (int*) &g_settings.out_space)
162 ptr);
165 while (*ptr != '=')
166 ptr++;
167 ptr++;
168 if (sscanf(ptr, "%f,%f", &g_settings.window_pos.x,
174 ptr);
177 while (*ptr != '=')
178 ptr++;
179 ptr++;
181 if (sscanf(ptr, "%d", &ascii) != 1) {
185 ptr);
779 char* ptr = (char*) &hdr;
780 if (io->Read(ptr + skipped, rd) != rd)
817 const char* ptr = str;
820 while ((ptr < end) && !err) {
821 if ((*ptr == 10) || (*ptr == 13)) {
824 err = io->Write(str, ptr - str);
825 if (err == ptr - str) {
830 str = ptr + 1;
832 ptr++;
835 if (ptr > str) {
838 err = io->Write(str, ptr - str);
839 if (err == ptr - str) {
921 unsigned char* ptr = (unsigned char*) malloc(max);
923 ptr[ix] = ix * 255 / max;
924 return ptr;