Write a record header: type tag followed by the element count.
ok rather than err carries the outcome so that a stale error left
in err by an earlier call cannot be mistaken for a failure here.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer(kind=default_int),
private
::
ios
Source Code
subroutine write_record_header(unit,tag,count,ok,err)!! Write a record header: type tag followed by the element count.!! `ok` rather than `err` carries the outcome so that a stale error left!! in `err` by an earlier call cannot be mistaken for a failure here.integer(default_int),intent(in)::unitinteger(int32),intent(in)::taginteger(int64),intent(in)::countlogical,intent(out)::oktype(error_t),intent(inout)::errinteger(default_int)::ioswrite(unit,iostat=ios)tagif(ios==0)write(unit,iostat=ios)countcall check_io(ios,"failed to write record header",err)ok=(ios==0)end subroutine write_record_header