home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
myckeys.zip
/
MYCKEYS.C
next >
Wrap
Text File
|
1994-02-03
|
583b
|
33 lines
/* MyCKeys C code highlighting sample */
#include <stdio.h>
void dummy(int foo,
int bar,
int baz)
{
/* I'm a do-nothing procedure :-) */
}
main(int argc, char *argv[], char *envp[])
{
dummy();
switch(argc)
{
case 1: /* no arguments */
puts("no arguments given");
break;
case 2: /* one argument */
printf("argument is %d", argv[1]);
break;
case 3:
default: /* more than one */
puts("too many arguments!");
break;
}
return 0;
}