comp.lang.ada
 help / color / mirror / Atom feed
From: agate!spool.mu.edu!sol.ctr.columbia.edu!news.kei.com!news.oc.com!convex!p elakh@ucbvax.Berkeley.EDU  (Boris Pelakh)
Subject: Re: SunAda Return Codes
Date: 9 Aug 93 13:18:00 GMT	[thread overview]
Message-ID: <1993Aug9.131800.1757@news.eng.convex.com> (raw)

In article <245b35$3r7@frigate.doc.ic.ac.uk> ajy@doc.ic.ac.uk (Andrew Young) wr
ites:
>How does a SunAda program report a return code to Unix?
>In C, I would do exit(n) or return(n) from the main() routine, but
>I can't find an equivalent package for SunAda.

All you have to do is make your main a function returning integer instead of 
a procedure, and then RETURN the proper code.


-- 
Boris Pelakh		Ada Project Leader          pelakh@convex.com
		     Convex Computer Corporation
"If winning isn't important, why keep score ?"	-- Lt. Worf, Star Trek TNG.
			

             reply	other threads:[~1993-08-09 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-09 13:18 agate!spool.mu.edu!sol.ctr.columbia.edu!news.kei.com!news.oc.com!convex!p [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-10 13:19 SunAda Return Codes cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!do
1993-08-09 16:56 Paul Durbin
1993-08-09 11:06 Andrew Young
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox