libsim  Versione7.2.6

◆ cstr_to_fchar()

character(len=size(cstr)-1) function, public char_utilities::cstr_to_fchar ( integer(kind=int_b), dimension(:), intent(in)  cstr)

Converts a null-terminated C-style string into a Fortran CHARACTER variable of the same length, the null termination character is removed.

Parametri
[in]cstrvariable to be converted

Definizione alla linea 795 del file char_utilities.F90.

795 !! length at blank spaces. If a line can't be splitted because a word
796 !! is longer than the line, it is truncated.
797 FUNCTION line_split_new(line, ncols) RESULT(this)
798 CHARACTER(len=*), INTENT(in) :: line
799 INTEGER, INTENT(in), OPTIONAL :: ncols
800 
801 TYPE(line_split) :: this
802 
803 INTEGER :: nw, nwords, nlines, columns_in_line, words_in_line, ncols_next_word
804 
805 IF (PRESENT(ncols)) THEN
806  this%ncols = ncols
807 ELSE
808  this%ncols = default_columns()

Generated with Doxygen.