|
◆ fchar_to_cstr_alloc()
subroutine, public char_utilities::fchar_to_cstr_alloc |
( |
character(len=*), intent(in) |
fchar, |
|
|
integer(kind=int_b), dimension(:), pointer |
pcstr |
|
) |
| |
Converts a CHARACTER variable into a string which can be directly passed to a C function requiring a null-terminated char* (input/output) argument.
The result is stored into pcstr which is allocated within the subroutine and has to be deallocated by the calling procedure.
- Parametri
-
[in] | fchar | variable to be converted |
| pcstr | pointer to a 1-d byte array which will be allocated and, on output, will contain the null-terminated string |
Definizione alla linea 796 del file char_utilities.F90.
797 FUNCTION line_split_new(line, ncols) RESULT(this) 798 CHARACTER(len=*), INTENT(in) :: line 799 INTEGER, INTENT(in), OPTIONAL :: ncols 801 TYPE(line_split) :: this
|