cfd-solver
0.0.1
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Namelists
Program
fortran_to_c_buffer
Subroutine
15 statements
Source File
solver_c_api.f90
solver_c_api
fortran_to_c_buffer
Contents
private subroutine fortran_to_c_buffer(text, buffer, buffer_len)
Copy trimmed Fortran text into a NUL-terminated C buffer.
Arguments
Type
Intent
Optional
Attributes
Name
character(len=*),
intent(in)
::
text
character(kind=c_char, len=1),
intent(out)
::
buffer
(*)
integer,
intent(in)
::
buffer_len