www.delorie.com/gnu/docs/m4/m4_51.html   search  
 
Buy GNU books!


GNU macro processor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.1 Calculating length of strings

The length of a string can be calculated by len:

 
len(string)

which expands to the length of string, as a decimal number.

 
len()
=>0
len(`abcdef')
=>6

The builtin macro len is recognized only when given arguments.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003