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  

toCharArray()

   
Examples  
String str = "CCCP"; 
char array[] = str.toCharArray(); 
Serial.println(array);  // Prints 'CCCP' 

Description   Returns an array of chars containing the characters of the string.
   
Syntax  
toCharArray()
   
Returns   byte[]
   
Usage   Web & Application