Xref: utzoo comp.binaries.ibm.pc.d:12271 comp.lang.c:36010 comp.lang.c++:11571 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!edlee From: edlee@chinet.chi.il.us (Edward Lee) Newsgroups: comp.binaries.ibm.pc.d,comp.lang.c,comp.lang.c++ Subject: Re: Problems with TDS and MSDOS Turbo C Message-ID: <1991Feb10.224226.8840@chinet.chi.il.us> Date: 10 Feb 91 22:42:26 GMT References: <1991Feb09.232914.13607@chinet.chi.il.us> Distribution: usa Organization: Chinet - Chicago Public Access UNIX Lines: 11 Thanks to the suggestion of Arthur Sybrandy, TDS now operates in binary mode under MSDOS. The "setmode(fileno(stream), O_BINARY);" function is used to set stdin and stdout to binary mode. This change only affects the MSDOS executable. The setmode() function seems to have the desired affect when TDS is compiled under Turbo C++ v1.0 but does not have the desired affect under Turbo C v2.0 . -Ed L