home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
popen.arc
/
GETSWITC.C
next >
Wrap
C/C++ Source or Header
|
1988-03-08
|
290b
|
17 lines
#include <stdio.h>
#include <dos.h>
static char SW = 0; /* DOS switch character, either '-' or '/' */
int
getswitch()
{
if (SW == 0) {
/* get SW using dos call 0x37 */
_AX = 0x3700;
geninterrupt(0x21);
SW = _DL;
}
return( SW & 0xFF );
}