📄 ioinit.3f
字号:
.\" SCCSID: @(#)ioinit.3f 8.1 9/11/90.TH ioinit 3f VAX "" Unsupported.SH Nameioinit \- change f77 I/O initialization.SH Syntax\fBlogical function ioinit (cctl, bzro, apnd, prefix, vrbose)\fP.br.B logical cctl, bzro, apnd, vrbose.br.B character*(*) prefix.SH Description.NXR "ioinit subroutine (FORTRAN)".NXR "f77 compiler" "initializing I/O system"This routine will initialize several global parameters in the f77 I/O system,and attach externally defined files to logical units at run time.The effect of the flag arguments applies to logical units opened after.PN ioinitis called.The exception is the preassigned units, 5 and 6, to which.I cctland.I bzrowill apply at any time.The.PN ioinitroutine is written in FORTRAN-77..PPBy default,carriage control is not recognized on any logical unit. If.I cctlis.B .true.then carriage control will be recognized on formatted outputto all logical units except unit 0, the diagnostic channel.Otherwise the default will be restored..PPBy default, trailing and embedded blanks in input data fieldsare ignored. If.I bzrois.B .true.then such blanks will be treated as zeros.Otherwise the default will be restored..PPBy default, all files opened for sequential access are positioned attheir beginning.It is sometimes necessary or convenient to open at the END-OF-FILEso that a write will append to the existing data.If.I apndis.B .true.then files opened subsequently on any logical unitwill be positioned at their end upon opening.A value of.B .false.will restore the default behavior..PPThe.PN ioinitroutine may be used to associate file names with FORTRANlogical unit numbers through environment variables. Seethe ``Introduction to the f77 I/O Library'' in the.I "ULTRIX Supplementary Documents"for a more general way of doing this. If the argument.I prefixis a non-blank string, then names of the form.BR prefix NNwill be sought in the program environment. The value associated witheach such name found will be used to open logical unit NN for formattedsequential access.For example, if f77 program.I myprogramincluded the call:.EXcall ioinit (.true., .false., .false., FORT, .false.).EEthen the following sequence:.EX% setenv FORT01 mydata% setenv FORT12 myresults% myprogram.EEwould result in logical unit 1 opened to file.I mydataand logical unit 12 opened to file.I myresults .Both files would be positioned at their beginning.Any formatted output would have column 1 removed and interpretedas carriage control.Embedded and trailing blanks would be ignored on input..PPIf the argument.I vrboseis.B .true.then.PN ioinitwill report on its activity..PPThe effect of:.EXcall ioinit (.true., .true., .false., , .false.).EEcan be achieved without the actual call by including ``\-lI66''on the.PN f77command line.This gives carriage control on all logical units except 0,causes files to be opened at their beginning, and causesblanks to be interpreted as zero's..PPThe internal flags are stored in a labeled common block with the followingdefinition:.EXinteger*2 ieof, ictl, ibzrcommon /ioiflg/ ieof, ictl, ibzr.EE.SH Restrictions.NXR "ioinit subroutine (FORTRAN)" "restrictions"The.I prefixargument can be no longer than 30 characters. A pathnameassociated with an environment name can be no longerthan 255 characters..PPThe ``+'' carriage control does not work..SH Files.ta \w'/usr/ucb/lib/libI77.a 'u.ie \nM /usr/ucb/lib/libI77.a f77 I/O library.el /usr/lib/libI77.a f77 I/O library.br.ie \nM /usr/ucb/lib/libI66.a Sets older FORTRAN I/O modes.el /usr/lib/libI66.a Sets older FORTRAN I/O modes.SH See Alsogetarg(3f), getenv(3f).br``Introduction to the f77 I/O Library,''.I ULTRIX Supplementary Documents,.brVol. II: Programmer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -