MCPcopy Create free account
hub / github.com/coreutils/coreutils / stdout_isatty

Function stdout_isatty

src/ls.c:1894–1902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1892/* Return true if standard output is a tty, caching the result. */
1893
1894static bool
1895stdout_isatty (void)
1896{
1897 static signed char out_tty = -1;
1898 if (out_tty < 0)
1899 out_tty = isatty (STDOUT_FILENO);
1900 assume (out_tty == 0 || out_tty == 1);
1901 return out_tty;
1902}
1903
1904/* Set all the option flags according to the switches specified.
1905 Return the index of the first non-option argument. */

Callers 1

decode_switchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected