source: trunk/src/win32k/fhfix.c@ 4290

Last change on this file since 4290 was 4290, checked in by bird, 25 years ago

Removed environemnt...

File size: 833 bytes
Line 
1#define INCL_BASE
2#include <os2.h>
3#include <string.h>
4
5int main(int argc, char **argv)
6{
7 static char szArgBuffer[32768];
8 RESULTCODES resc;
9 int argi;
10 char * psz;
11
12 DosSetMaxFH(100);
13
14 if (argc < 2)
15 {
16 /* complain */
17 return -1;
18 }
19
20 /* first argument */
21 psz = strcpy(szArgBuffer, argv[1]);
22 psz += strlen(psz);
23 psz++;
24
25 if (argc > 2)
26 {
27 argi = 2;
28 while (argi < argc)
29 {
30 strcpy(psz, argv[argi]);
31 psz += strlen(psz);
32 *psz++ = ' ';
33 argi++;
34 }
35 psz[-1] = '\0';
36 }
37 *psz = '\0';
38
39 if (DosExecPgm(NULL, 0, EXEC_SYNC, szArgBuffer, "\0\0", &resc, szArgBuffer) != NO_ERROR)
40 {
41 /*complain*/
42 return -1;
43 }
44 return resc.codeResult;
45}
Note: See TracBrowser for help on using the repository browser.