22 |
|
{ |
23 |
|
fputs("Usage: ", stderr); |
24 |
|
fputs(progname, stderr); |
25 |
< |
fputs(" [-h[io]][-H[io]][-f[afd]] [input [output.nrm]]\n", stderr); |
25 |
> |
fputs(" [-h[io]][-H[io]][-f[afd]][-x xr -y yr] [input [output.nrm]]\n", stderr); |
26 |
|
fputs(" Or: ", stderr); |
27 |
|
fputs(progname, stderr); |
28 |
|
fputs(" -r [-i][-u][-h[io]][-H[io]][-f[afd]] [input.nrm [output]]\n", |
38 |
|
long nexpected = (long)ncp->res.xr * ncp->res.yr; |
39 |
|
|
40 |
|
if (ncp->inpfmt[0]) { |
41 |
< |
if (strstr(ncp->inpfmt, "ascii") != NULL) |
41 |
> |
if (!strcmp(ncp->inpfmt, "ascii")) |
42 |
|
ncp->format = 'a'; |
43 |
< |
else if (strstr(ncp->inpfmt, "float") != NULL) |
43 |
> |
else if (!strcmp(ncp->inpfmt, "float")) |
44 |
|
ncp->format = 'f'; |
45 |
< |
else if (strstr(ncp->inpfmt, "double") != NULL) |
45 |
> |
else if (!strcmp(ncp->inpfmt, "double")) |
46 |
|
ncp->format = 'd'; |
47 |
|
else { |
48 |
|
fputs(ncp->inpname, stderr); |