home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
numlok.zip
/
NUMLOK.C
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
604b
|
31 lines
#include <stddef.h>
#include <stdlib.h>
#include <dos.h>
/*******************************
Released into the public domain
*******************************/
char credits[]=" Witten by Michael F. Oryl Jr. ";
void main(int argc, char *argv[]){
char far *bitmap;
char response[255];
bitmap=(char far*)MK_FP(0,0x417);
if (argc<2){
printf("\nUsage: NUMLOK [ON|OFF]\n\n");
exit(2);
}
strcpy(response,argv[1]);
strupr(response);
if (strcmp(response,"ON")){
*bitmap&=223;
}
else{
*bitmap|=32;
}
}