Logo

Programming-Idioms

History of Idiom 169 > diff from v62 to v63

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

Version 62

2019-09-26, 18:21:35

Version 63

2019-09-26, 20:15:16

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration
Extra Keywords
size characters chars number runes
Extra Keywords
size characters chars number runes
Code
n = len(s)