Lines Matching defs:buf1
62 char buf1[32], tuple_type[32];
65 pnm_get(s, buf1, sizeof(buf1));
66 s->type= buf1[1]-'0';
67 if(buf1[0] != 'P')
86 pnm_get(s, buf1, sizeof(buf1));
87 if (!strcmp(buf1, "WIDTH")) {
88 pnm_get(s, buf1, sizeof(buf1));
89 w = strtol(buf1, NULL, 10);
90 } else if (!strcmp(buf1, "HEIGHT")) {
91 pnm_get(s, buf1, sizeof(buf1));
92 h = strtol(buf1, NULL, 10);
93 } else if (!strcmp(buf1, "DEPTH")) {
94 pnm_get(s, buf1, sizeof(buf1));
95 depth = strtol(buf1, NULL, 10);
96 } else if (!strcmp(buf1, "MAXVAL")) {
97 pnm_get(s, buf1, sizeof(buf1));
98 maxval = strtol(buf1, NULL, 10);
99 } else if (!strcmp(buf1, "TUPLTYPE") ||
101 !strcmp(buf1, "TUPLETYPE")) {
103 } else if (!strcmp(buf1, "ENDHDR")) {
146 pnm_get(s, buf1, sizeof(buf1));
147 w = atoi(buf1);
148 pnm_get(s, buf1, sizeof(buf1));
149 h = atoi(buf1);
157 pnm_get(s, buf1, sizeof(buf1));
158 s->maxval = atoi(buf1);