Lines Matching defs:buf
194 char buf[1024];
219 if (fgets(buf, 1024, file) == NULL) {
226 sscanf(buf, "%9s %9s", gpu_name, last_reg_s);
231 if (fgets(buf, 1024, file) == NULL) {
235 len = strlen(buf);
239 r = regexec(&mask_rex, buf, 4, match, 0);
248 buf[match[0].rm_eo] = 0;
249 buf[match[1].rm_eo] = 0;
250 buf[match[2].rm_eo] = 0;
251 o = strtol(&buf[match[1].rm_so], NULL, 16);