2 ms·
isatty() to the rescue, but that's not to say that there shouldn't be a -- option or defaulting to a different mode depending on argv[0], like gzip does. [0] h
by huhtenberg 14y ago
isatty() to the rescue, but that's not to say that there shouldn't be a -- option or defaulting to a different mode depending on argv[0], like gzip does.
[0] http://pubs.opengroup.org/onlinepubs/007904875/functions/isatty.html http://pubs.opengroup.org/onlinepubs/007904875/functions/isa...