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

| String

| Reference for Wiring 1.0 (ALPHA) 0022+. 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 |  | ### toCharArray()
Examples |  |
    String str = String("CCCP");
    const char *array = str.toCharArray();
    Serial.println(array);  // Prints "CCCP"
Description |  | Returns an array of chars containing the characters of the string.
Syntax |  |
    toCharArray()
Returns |  | char[]
Usage |  | Web & Application