a type containing an allocatable character string. so we can have an array of strings of different lengths.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | str |
convert to integer
Basic string to integer routine
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string), | intent(in) | :: | me |
Basic string to integer routine
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string), | intent(in) | :: | me |
type,public :: string !! a type containing an allocatable character string. !! so we can have an array of strings of different lengths. character(len=:),allocatable :: str contains procedure,public :: to_int => string_to_int !! convert to integer procedure,public :: to_int_64 => string_to_int_64 end type string