Lines Matching defs:fp
36 static int fread_id_name(FILE *fp, int *id, char *namebuf)
40 while (fgets(buf, sizeof(buf), fp)) {
65 FILE *fp;
70 fp = fopen(file, "r");
71 if (!fp)
74 while ((ret = fread_id_name(fp, &id, &namebuf[0]))) {
78 fclose(fp);
91 fclose(fp);
96 FILE *fp;
101 fp = fopen(file, "r");
102 if (!fp)
105 while ((ret = fread_id_name(fp, &id, &namebuf[0]))) {
109 fclose(fp);
117 fclose(fp);