"Robinson, Mark" wrote:
> A simple console app compiled with MingW (-mno-cygwin) (or VC++) cannot
> read from stdin when executed in an rxvt or xterm terminal:
>
> #include
> main() {
> int c;
> fputc(isatty(stdin), stdout);
> while ((c = getc(stdin)) != EOF) fputc(c, stdout);
> }
>
> Fur
Greetings
A simple console app compiled with MingW (-mno-cygwin) (or VC++) cannot
read from stdin when executed in an rxvt or xterm terminal:
#include
main() {
int c;
fputc(isatty(stdin), stdout);
while ((c = getc(stdin)) != EOF) fputc(c, stdout);
}
Furthermore, isatty(stdin) returns 0.
2 matches
Mail list logo