uncouple(3f) - [M_strings:ARRAY] converts between CHARACTER scalar and array of single characters (LICENSE:PD)
Synopsis
Description
Examples
See Also
Author
License
pure function uncouple(string) result (array)
character(len=*),intent(in) :: string character(len=1) :: array(len(string))
UNCOUPLE(3f): function that switches CHARACTER string to an array of single characters.
Sample program:
program demo_uncouple use M_strings, only : uncouple character(len=*),parameter :: string=This is a stringResults:write(*,(1x,*("[",a,"]":))) string ! converted to character array write(*,(1x,*("[",a,"]":))) uncouple(string)
end program demo_uncouple
> [This is a string] > [T][h][i][s][ ][i][s][ ][a][ ][s][t][r][i][n][g]
switch(3), join(3), couple(3), c2s(3), s2c(3)
John S. Urban
Public Domain
