22 |
|
int op; /* '*' or '+' */ |
23 |
|
} ROPERAT; /* matrix operation */ |
24 |
|
|
25 |
– |
int outfmt = DTfromHeader; /* output format */ |
25 |
|
int verbose = 0; /* verbose reporting? */ |
26 |
|
|
27 |
|
static void |
164 |
|
int |
165 |
|
main(int argc, char *argv[]) |
166 |
|
{ |
167 |
+ |
int outfmt = DTfromHeader; |
168 |
|
RMATRIX *mres = NULL; |
169 |
|
ROPERAT op; |
170 |
|
int i; |
231 |
|
if (mres == NULL) /* check that we got something */ |
232 |
|
goto userr; |
233 |
|
/* write result to stdout */ |
234 |
< |
#ifdef getc_unlocked |
235 |
< |
flockfile(stdout); |
236 |
< |
#endif |
234 |
> |
if (outfmt == DTfromHeader) |
235 |
> |
outfmt = mres->dtype; |
236 |
|
#ifdef _WIN32 |
237 |
|
if (outfmt != DTascii) |
238 |
|
_setmode(fileno(stdout), _O_BINARY); |