Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!oxtrap!mudos!mju From: mju@mudos.ann-arbor.mi.us (Marc Unangst) Newsgroups: comp.sys.ibm.pc Subject: Re: Switchar setting in MS-DOS Message-ID: <460.24844889@mudos.ann-arbor.mi.us> Date: 31 May 89 20:02:27 GMT References: <340@scr1.UUCP> Reply-To: mju@mudos.ann-arbor.mi.us Organization: A neat desk is a sign of a crazy person. Lines: 33 In article <340@scr1.UUCP>, pechter@scr1.UUCP (Bill Pechter) writes: >I'm going through the MS-DOS Encyclopedia by Ray Duncan -- but I can't >find any reference to the system call to change the switch character... > >Anyone have the code and registers needed to write a small assembler >program to change the switchar from "/" to "-". /* For Turbo C v1.0+ -- This will *not* work under MSC!!! */ #include /* For setswitchar() and getswitchar() */ #include /* For exit() */ #include /* For printf() */ void main(int, char **); main(int argc, char **argv) { char schar; if(argc != 2) { printf("switch: usage: switch switch-char\n"); exit(1); } schar = (char *) argv[1]; setswitchar(schar); printf("switch: switch character set to %c\n", getswitchar()); exit(0); } -- Marc Unangst UUCP smart : mju@mudos.ann-arbor.mi.us UUCP dumb : ...!uunet!sharkey!mudos!mju UUCP dumb alt.: ...!{ames,rutgers}!mailrus!clip!mudos!mju Internet : mju@mudos.ann-arbor.mi.us