string a = "hello";
char b[20];

Other than a for loop to copy character by character over is there some sort of function to convert strings to non const chars arrays? I don't even know if it exists or not but some kind of non const cast for a.c_str() perhaps?

I found the strcpy(..) to copy over the const c string from .c_str()... so I've answed my question...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.