#include setParam(vb, ho, vo, hdst, vdst, mf) int *vb, *ho, *vo, *hdst, *vdst, *mf; { FILE *fd; int c; *vb = *ho = *vo = *hdst = *vdst = *mf = -1; if ((fd = fopen(".grf", "r")) == NULL) return(1); while ((c = getc(fd)) == '#') { while ((c = getc(fd)) != '\n' && c != EOF) ; if (c == EOF) break; } if (c == EOF) return(1); else ungetc(c,fd); fscanf(fd, "Vertical border: %d Horizontal origin: %d \ Vertical origin: %d Horizontal distance: %d Vertical distance: %d \ Multiplicator: %d", vb, ho, vo, hdst, vdst, mf); fclose(fd); return(0); }