Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!egs From: egs@killer.DALLAS.TX.US (Eric Schnoebelen) Newsgroups: comp.sys.ibm.pc Subject: Re: switchar in DOS 3.2 Summary: turbo c library function Message-ID: <5845@killer.DALLAS.TX.US> Date: 18 Oct 88 18:09:42 GMT References: <4483@polya.Stanford.EDU> <1509@bingvaxu.cc.binghamton.edu> <5676@hoptoad.uucp> Reply-To: u-word!egs@killer.Dallas.TX.US (Eric Schnoebelen) Organization: John W. Bridges & Associates, Inc., Lewisville, Tx. Lines: 24 In article <5676@hoptoad.uucp> pozar@hoptoad.UUCP (Tim Pozar) writes: > > This is some code I put at the begging of most of my > programmes to reconize the current ms-dos switch char... > [ code deleted ] > > Tim > Turbo C (1.5) has a function in the standard libraries for this. I discovered this after writing my own, then writing a program that used it and having it work without linking in the correct library. The functions are: int getswitchar(); /* returns the currect switch character */ int setswitchar(char); /* set the current switchar */ ( funny how I managed to name my functions the right thing.. ) Eric Eric Schnoebelen John W. Bridges & Associates, Inc. Lewisville, Tx u-word!egs@killer.dallas.tx.us