ierror.3

来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 3 代码 · 共 53 行

3
53
字号
.th IERROR III 10/29/73.sh NAMEierror \*- catch Fortran errors.sh SYNOPSIS.ft Bif ( ierror ( \fIerrno\fB ) .ne. 0 ) goto \fIlabel\fR.sh DESCRIPTION.it Ierrorprovides a way of detecting errors during the running of a Fortranprogram.Its argument is a run-time error numbersuch as enumerated in.it fc(I)..s3When.it ierroris called,it returns a 0 value; thus the.bd gotostatement in the synopsis is not executed.However, the routine stores inside itself thecall point and invocation level.If and when the indicated error occurs,a.bd returnis simulated from.it ierrorwith a non-zero value;thus the.bd goto(or other statement)is executed.It is a ghastly error to call.it ierrorfrom a subroutine whichhas already returned when the error occurs..s3This routine is essentially tailored tocatching end-of-file situations.Typically it is called just before the startof the loop which reads the input file,and the.bd gotojumps to a graceful termination of the program..s3There is a limit of 5 on the numberof different error numbers which can be caught..sh "SEE ALSO"fc (I).sh BUGSThere is no way to ignore errors.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?