C Library Functions  - M_strings__chars (3)

NAME

M_strings__chars(3f) - [M_strings__chars::INTRO] Fortran character module

CONTENTS

Description
Synopsis
Examples
Author
License

DESCRIPTION

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.

SYNOPSIS

public entities:

     use M_strings__chars,only : toupper, tolower

    CASE

toupper
  function converts character array to uppercase
tolower
  function converts character array to lowercase

EXAMPLES

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

AUTHOR

John S. Urban

LICENSE

    MIT


Nemo Release 3.1 M_strings__chars (3) June 29, 2025
Generated by manServer 1.08 from e9949890-6fd8-4cdd-9f0c-3a9e1586e397 using man macros.