M_strings__chars(3f) - [M_strings__chars::INTRO] Fortran character module
Description
Synopsis
Examples
Author
License
Fortran allows for processing character data as strings, or as arrays of single characters or even as integer values.M_strings__chars(3f) is a collection of functions that handle character variable arrays of len=1, which is more familiar for some programmers.
public entities:
use M_strings__chars,only : toupper, tolower
toupper function converts character array to uppercase tolower function converts character array to lowercase
Each of the procedures includes an example program in the corresponding man(1) page for the function.
Sample program:
program demo_M_strings__chars use M_strings__chars, only : toupper, tolower implicit none integer,parameter :: bytes=80 character :: string*(bytes) character :: lets(bytes) equivalence (string,lets) string=Do unto Others write(*,*)toupper(lets) write(*,*)tolower(lets) end program demo_M_strings__chars
John S. Urban
Nemo Release 3.1 | M_strings__chars (3) | June 29, 2025 |