freopen/fread/popen bug

A L al20878@gmail.com
Fri Feb 27 23:23:00 GMT 2015


> Thanks (and thanks to Corinna and Eric) for correcting my misconceptions.

You're welcome.  I only wanted to follow up that (I don't know what
the heck happened to my head, but) when I was
referring to file descriptors, I was consistently and mistakenly using
"1" where "0" should have been used:
stdin is at "0", and stdout is at "1" (and your code shares input
stream with "cat", i.e. fd 0).  Apologies.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list