!4004 文本工具entab关闭打开的文件
Merge pull request !4004 from xiyanziran/master-entab
This commit is contained in:
@ -180,6 +180,8 @@ int main(int argc, char** argv)
|
|||||||
if (fputs(out_line, stdout) == EOF)
|
if (fputs(out_line, stdout) == EOF)
|
||||||
halt("PERROR: Error writing output.\n");
|
halt("PERROR: Error writing output.\n");
|
||||||
}
|
}
|
||||||
|
if (in_file != stdin)
|
||||||
|
fclose(in_file);
|
||||||
} while (--argc > 0);
|
} while (--argc > 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user