| String

| Reference for Wiring 1.0 (ALPHA) 0017+. 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 |  | ### capacity()
Examples |  |
    String str = "CCCP";
    int c = str1.capacity();
    Serial.println(c, DEC);
Description |  | Returns the capacity of the string as an integer number. Note: You can find that the internal capacity of a string may differ from the length of it. It is possible to have a String with a capacity of 16 characters but the length of the string that holds to be of just 6 characters.
Syntax |  |
    capacity()
Returns |  | int
Usage |  | Web & Application