Reference for Wiring version 0024+. 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 Application
Updated on November 01, 2009 01:01:01pm PST

Creative Commons License