Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ string to char array

const char *array = tmp.c_str(); //For const char array
char *array = &tmp[0]; // If you need to modify the array
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #char #array
ADD COMMENT
Topic
Name
2+1 =