Logo

Programming-Idioms

History of Idiom 46 > diff from v40 to v41

Edit summary for version 41 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 40

2019-09-26, 16:15:08

Version 41

2019-09-26, 20:23:30

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Illustration

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Illustration
Code
 character(len=5) :: t
 t = s(1:5)