version 1.18, 2015/10/10 21:29:59 |
version 1.19, 2019/06/28 13:35:01 |
|
|
catfile = *argv++; |
catfile = *argv++; |
|
|
for (; *argv; argv++) { |
for (; *argv; argv++) { |
if ((ifd = open(*argv, O_RDONLY)) < 0) |
if ((ifd = open(*argv, O_RDONLY)) == -1) |
err(1, "Unable to read %s", *argv); |
err(1, "Unable to read %s", *argv); |
MCParse(ifd); |
MCParse(ifd); |
close(ifd); |
close(ifd); |
} |
} |
|
|
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0) |
if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) == -1) |
err(1, "Unable to create a new %s", catfile); |
err(1, "Unable to create a new %s", catfile); |
MCWriteCat(ofd); |
MCWriteCat(ofd); |
exit(0); |
exit(0); |