Re: Exit code with Fortran 90
- From: Joseph Huber <joseph.huber@xxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 13:43:05 +0100
Andrea Francia wrote:
If I use the istruction
stop n
where n is a integer I found that the program terminate with n as exit code.
I see that this happen compiling when I use the GNU Fortran compiler (gfortran).
Is this behaviour standard, or it is a special behaviour of gfortran?
The standard only says:
"...the stop code, if any, is available in a processor-dependent manner."
And I know at least one implementation (VMS DEC/HP Fortran) which
just displays the code (or string), and does not pass it to program exit
status.
--
Joseph Huber - http://www.huber-joseph.de
.
- Follow-Ups:
- Re: Exit code with Fortran 90
- From: Gary Scott
- Re: Exit code with Fortran 90
- References:
- Exit code with Fortran 90
- From: Andrea Francia
- Exit code with Fortran 90
- Prev by Date: Re: Exit code with Fortran 90
- Next by Date: Re: Exit code with Fortran 90
- Previous by thread: Re: Exit code with Fortran 90
- Next by thread: Re: Exit code with Fortran 90
- Index(es):
Relevant Pages
|
|