private pure function path_to_c_string(s) result(c)
Pack a Fortran string into a null-terminated c_char array for
the mkdir binding above. Private duplicate of
rdb_ocean_restart_io’s string_to_c (that one is private to
its own module) — small enough that sharing it is not worth a
cross-module dependency for a two-line helper.
Arguments
Type
Intent
Optional
Attributes
Name
character(len=*),
intent(in)
::
s
Return Value
character(kind=c_char, len=1), allocatable, (:)
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,
private
::
i
integer,
private
::
n
Source Code
pure function path_to_c_string(s)result(c)!! Pack a Fortran string into a null-terminated c_char array for!! the `mkdir` binding above. Private duplicate of!! `rdb_ocean_restart_io`'s `string_to_c` (that one is private to!! its own module) — small enough that sharing it is not worth a!! cross-module dependency for a two-line helper.character(len=*),intent(in)::scharacter(kind=c_char),allocatable::c(:)integer::i,nn=len_trim(s)allocate(c(n+1))do i=1,nc(i)=s(i:i)end doc(n+1)=c_null_charend function path_to_c_string