Lines Matching defs:fp
507 FILE *fp = fopen(encoded_file_path, "w");
508 if (!fp) {
512 if (fwrite(dtarget, fsiz, 1, fp) != 1) {
513 fclose(fp);
516 fclose(fp);
654 FILE *fp = fopen(processed_file_path.c_str(), "r");
655 if (fp != NULL) {
657 while(fscanf(fp, "%d\n", &seq) > 0) {
663 fclose(fp);
667 fp = fopen(produced_file_path.c_str(), "r");
668 if (fp != NULL) {
670 while(fscanf(fp, "%d\n", &seq) > 0) {
675 fclose(fp);
684 fp = fopen(produced_file_path.c_str(), "w");
685 if (fp == NULL) {
691 fprintf(fp, "%d\n", *iter);
693 fclose(fp);