| 76 |
|
{ |
| 77 |
|
FILE *fp; |
| 78 |
|
char buf[128]; |
| 79 |
< |
char *fname, *getpath(); |
| 79 |
> |
char *fname; |
| 80 |
|
int change = 0; |
| 81 |
|
VIEW nv; |
| 82 |
|
|
| 83 |
|
if (sscanf(s, "%s", buf) == 1) { /* write parameters to a file */ |
| 84 |
< |
if ((fname = getpath(buf, NULL)) == NULL || |
| 84 |
> |
if ((fname = getpath(buf, NULL, 0)) == NULL || |
| 85 |
|
(fp = fopen(fname, "a")) == NULL) { |
| 86 |
|
sprintf(errmsg, "cannot open \"%s\"", buf); |
| 87 |
|
error(COMMAND, errmsg); |
| 158 |
|
char *s; |
| 159 |
|
{ |
| 160 |
|
char buf[128]; |
| 161 |
< |
char *fname, *getpath(); |
| 161 |
> |
char *fname; |
| 162 |
|
int success; |
| 163 |
|
VIEW nv; |
| 164 |
|
|
| 165 |
|
if (sscanf(s, "%s", buf) == 1) { /* get parameters from a file */ |
| 166 |
|
bcopy(&stdview, &nv, sizeof(VIEW)); |
| 167 |
< |
if ((fname = getpath(buf, NULL)) == NULL || |
| 167 |
> |
if ((fname = getpath(buf, NULL, 0)) == NULL || |
| 168 |
|
(success = viewfile(fname, &nv)) == -1) { |
| 169 |
|
sprintf(errmsg, "cannot open \"%s\"", buf); |
| 170 |
|
error(COMMAND, errmsg); |
| 655 |
|
char *s; |
| 656 |
|
{ |
| 657 |
|
static char buf[128]; |
| 658 |
< |
char *fname, *getpath(); |
| 658 |
> |
char *fname; |
| 659 |
|
FILE *fp; |
| 660 |
|
COLR *scanline; |
| 661 |
|
int y; |
| 664 |
|
error(COMMAND, "no file"); |
| 665 |
|
return; |
| 666 |
|
} |
| 667 |
< |
if ((fname = getpath(buf, NULL)) == NULL || |
| 667 |
> |
if ((fname = getpath(buf, NULL, 0)) == NULL || |
| 668 |
|
(fp = fopen(fname, "w")) == NULL) { |
| 669 |
|
sprintf(errmsg, "cannot open \"%s\"", buf); |
| 670 |
|
error(COMMAND, errmsg); |