comparison helpers/mokosrec2bin.c @ 207:4c555a7a3435

helpers/mokosrec2bin.c: sync with master version in freecalypso-tools The only diff is that the fill byte now defaults to 0xFF.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 05:13:01 +0000
parents 47037439ed64
children
comparison
equal deleted inserted replaced
206:fdde05764380 207:4c555a7a3435
126 if (i >= 0) 126 if (i >= 0)
127 fillbyte = i; 127 fillbyte = i;
128 else 128 else
129 goto usage; 129 goto usage;
130 } else 130 } else
131 fillbyte = 0; 131 fillbyte = 0xFF;
132 132
133 state = 0; 133 state = 0;
134 for (lineno = 1; ; lineno++) { 134 for (lineno = 1; ; lineno++) {
135 if (!fgets(srecbuf, sizeof srecbuf, inf)) { 135 if (!fgets(srecbuf, sizeof srecbuf, inf)) {
136 fprintf(stderr, "%s: premature EOF\n", infname); 136 fprintf(stderr, "%s: premature EOF\n", infname);