www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/14/06:12:17

Date: Sun, 14 Feb 1999 13:09:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Brian Hansell <hansell AT epix DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Program Exit Code 255
In-Reply-To: <36C5CF37.204E8855@epix.net>
Message-ID: <Pine.SUN.3.91.990214130900.15332F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 13 Feb 1999, Brian Hansell wrote:

> Then is there a way I can tell what the default error exit code 255 is?  Or
> is there someplace where I can find a list of errors?

See EXIT_FAILURE and EXIT_SUCCESS in the header stdlib.h.

255 is simply (unsigned char)(-1).  Some programs return -1 in case of
a fatal error, but the portable way is to use EXIT_FAILURE.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019