Lines Matching defs:fp
139 FILE *fp;
154 if ((fp = fopen(file, mode)) == NULL) {
168 (void) fprintf(fp, "\n$quote %s\n\n", pquote);
184 (void) fprintf(fp, "\n");
185 print_prefix(fp, "$ ", TRUE,
187 (void) fprintf(fp, "$set\t%d\n",
190 (void) fprintf(fp, "\n$set\t%d\n",
195 print_prefix(fp, "$ ", TRUE,
198 (void) fprintf(fp, "\n");
210 (void) fprintf(fp,
216 print_prefix(fp, "$ ", TRUE,
221 print_prefix(fp, "$ ", FALSE, msg);
225 (void) fprintf(fp, "%s", msg);
230 (void) fprintf(fp,
236 print_prefix(fp, "$ ", TRUE,
241 print_prefix(fp, "$ ", FALSE, msg);
245 (void) fprintf(fp, "\n");
252 (void) fclose(fp);
389 print_prefix(FILE *fp, char *prefix, int rm_blank, char *str)
391 (void) fprintf(fp, "%s", prefix);
393 (void) fputc(*str, fp);
395 (void) fprintf(fp, "%s", prefix);
405 (void) fputc('\n', fp);
412 FILE *fp;
419 if ((fp = fopen(file, "r")) == NULL) {
423 while (fgets(line, sizeof (line), fp) != NULL) {
448 (void) fclose(fp);
456 FILE *fp;
465 if ((fp = fopen(file, "w")) == NULL) {
481 print_prefix(fp, "# ", TRUE, com);
484 (void) fprintf(fp, "%d\t%d\n", i, msgid_table[i]);
487 print_prefix(fp, "# ", TRUE, com);
492 (void) fclose(fp);
555 FILE *fp;
562 if ((fp = fopen(file, "r")) == NULL) {
581 if (fgets(buf, sizeof (buf), fp) == NULL) {
672 (void) fclose(fp);