This page is also available in 2 other languages
Change language 

length()

[StringObject Function]

Description

Returns the length of the String, in characters. (Note that this doesn’t include a trailing null character.)

Syntax

myString.length()

Parameters

myString: a variable of type String.

Returns

The length of the String in characters. Data type: unsigned int.

See also