home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hcshdemo.zip
/
csh-os2.zip
/
SAMPLES
/
RCODE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-28
|
702b
|
23 lines
/***************************************************************************/
/* */
/* */
/* Print & exit with the specified return code. */
/* Copyright (c) 1989-1992 by Hamilton Laboratories. All rights reserved. */
/* */
/* */
/***************************************************************************/
#include <os2.h>
#include <stdlib.h>
#include <stdio.h>
void cdecl main ( int argc, char *argv[] )
{
unsigned return_code = 0;
if (argc > 1)
printf("%d\n", return_code = atoi(argv[1]));
else
printf("0\n");
DosExit(EXIT_PROCESS, return_code);
}