mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-11 23:00:24 +08:00
backport: commandline support on stdin/stdout
This commit is contained in:
@@ -106,7 +106,7 @@ int main(int argc, char **argv){
|
|||||||
if(is_standard_io(OUTPUT)) {
|
if(is_standard_io(OUTPUT)) {
|
||||||
fpo = stdout;
|
fpo = stdout;
|
||||||
} else {
|
} else {
|
||||||
fpo = fopen(OUTPUT, "wb");
|
fpo = fopen(OUTPUT, "wb");
|
||||||
if(!fpo){
|
if(!fpo){
|
||||||
perror("fopen");
|
perror("fopen");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user