Lines Matching defs:fp_in
235 FILE *fp_in = stdin; /* read from this file */
545 fp_in = stdin;
547 } else if ( (fp_in = fopen(*argv, "r")) == NULL )
550 if ( fp_in != stdin )
551 fclose(fp_in);
618 * Reads a matrix from *fp_in, translates it into a PostScript gray scale image,
635 if ( fp_in == stdin ) /* make a copy so we can seek etc. */
660 while ( patcount != total && fscanf(fp_in, "%f", &element) != EOF ) {
695 * temporary file and reset *fp_in so reads come from the temp file. Simplifies
718 if ( (fp_in = fopen(temp_file, "r")) == NULL )
736 * reads it if it's there, and sets *fp_in to be just past the header. That should
787 pos = ftell(fp_in);
789 while ( fscanf(fp_in, "%s", buf) != EOF ) {
791 fscanf(fp_in, "%dx%d", &rows, &columns);
793 fgets(buf, sizeof(buf), fp_in);
796 fgets(buf, sizeof(buf), fp_in);
799 fgets(buf, sizeof(buf), fp_in);
802 fgets(buf, sizeof(buf), fp_in);
805 fgets(buf, sizeof(buf), fp_in);
808 fscanf(fp_in, "%s", buf);
814 pos = ftell(fp_in);
818 fseek(fp_in, pos, 0); /* back to the start of the matrix */
848 pos = ftell(fp_in);
849 while ( fscanf(fp_in, "%s", buf) != EOF )
852 fseek(fp_in, pos, 0);