Setting DOS errorlevel in C (How?)

Steve Harrold swh at hpsmtc1.HP.COM
Wed Mar 16 08:48:09 AEST 1988


Re: setting errorlevel from C

For Microsoft C use:

int main(....)
...
{
	int  rc ;
	...	
	rc = ... ;
	...
	return rc;
}

Use of exit(rc) would also succeed.

---------------------
Steve Harrold			...hplabs!hpsmtc1!swh
				HPG200/13
				(408) 447-5580
---------------------



More information about the Comp.lang.c mailing list