home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
TC4OS22.ZIP
/
TEST.C
< prev
next >
Wrap
Text File
|
1989-02-24
|
749b
|
30 lines
#include <dos.h>
#include <stdlib.h>
#include <stdio.h>
#include "os2vio.h"
int attr = 0x0a20;
void main(int argc, char *argv[])
/**********************************************************************
/* *
**********************************************************************/
{
int x, y;
char wstr[128];
VioScrollDn(0, 0, -1, -1, -1, &attr, 0);
for (x = 0; x < argc; x++)
{
y = sprintf(wstr, "%u : %s", x, argv[x]);
VioWrtCharStr(wstr, y, x, 0, 0);
}
y = sprintf(wstr, "COMSPEC = %s", getenv("COMSPEC"));
VioWrtCharStr(wstr, y, x++, 0, 0);
y = sprintf(wstr, "SHELL = %s", getenv("SHELL"));
VioWrtCharStr(wstr, y, x++, 0, 0);
_exit(0);
}