manpagez: man pages & more
info m4
Home | html | info | man

File: m4.info,  Node: Len,  Next: Index macro,  Up: Text handling

11.1 Calculating length of strings
==================================

The length of a string can be calculated by ‘len’:

 -- Builtin: len(STRING)
     Expands to the length of STRING, as a decimal number.

     The macro ‘len’ is recognized only with parameters.

     len()
     ⇒0
     len(`abcdef')
     ⇒6

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.