MCPcopy Create free account
hub / github.com/F-Stack/f-stack / IS_CONSOLE

Function IS_CONSOLE

freebsd/contrib/zstd/programs/platform.h:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141# include <windows.h> /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */
142# include <stdio.h> /* FILE */
143static __inline int IS_CONSOLE(FILE* stdStream) {
144 DWORD dummy;
145 return _isatty(_fileno(stdStream)) && GetConsoleMode((HANDLE)_get_osfhandle(_fileno(stdStream)), &dummy);
146}
147#else
148# define IS_CONSOLE(stdStream) 0
149#endif

Callers 2

FIO_listMultipleFilesFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected