Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcupt1!hpcuhb!hpsmtc1!swh From: swh@hpsmtc1.HP.COM (Steve Harrold) Newsgroups: comp.lang.c Subject: Re: Setting DOS errorlevel in C (How?) Message-ID: <11480009@hpsmtc1.HP.COM> Date: 15 Mar 88 22:48:09 GMT References: <4831@sigi.Colorado.EDU> Organization: Hewlett Packard, Cupertino Lines: 20 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 ---------------------