String()length() \ Language (API) \ Wiring 1.0 (ALPHA)

| String

| Reference for Wiring 1.0 (ALPHA) 0019+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class |  | String
Name |  | ### length()
Examples |  |
    String str1 = "CCCP";
    int l1 = str1.length();
    Serial.println(l1, DEC);  // Prints 4
Description |  | Returns the total number of characters included in the string as an integer number.
Syntax |  |
    length()
Returns |  | int
Usage |  | Web & Application