Lines Matching refs:fp
50 FILE *fp; in readFile() local
55 fp = fopen(filename.c_str(), "r"); in readFile()
56 if (fp != NULL) { in readFile()
57 if ((read = getline(&line, &len, fp)) != -1) { in readFile()
63 fclose(fp); in readFile()
119 FILE *fp; in switchToDrp() local
122 fp = fopen(filename.c_str(), "w"); in switchToDrp()
123 if (fp != NULL) { in switchToDrp()
124 int ret = fputs("dual", fp); in switchToDrp()
125 fclose(fp); in switchToDrp()
141 FILE *fp; in switchMode() local
149 fp = fopen(filename.c_str(), "w"); in switchMode()
150 if (fp != NULL) { in switchMode()
156 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
157 fclose(fp); in switchMode()
221 FILE *fp; in switchRole() local
237 fp = fopen(filename.c_str(), "w"); in switchRole()
238 if (fp != NULL) { in switchRole()
239 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
240 fclose(fp); in switchRole()