I want to copy a string into a char array, and not overrun the buffer.
So if I have a char array of size 5, then I want to copy a maximum of 5 bytes from a string in
void stringChange(string var){ char strArray[100]; strcpy(strArray, var.c_str()); }
I guess this should work. it'll copy form string to an char array.