Is there an easy way to copy C strings?
I have const char *stringA, and I want char *stringB to take the value (note that stringB
const char *stringA
char *stringB
stringB
You're probably looking for strncpy, which allows you to copy the first n characters from a string. Just be sure to add the null-terminator at position n of the copied-to string.
n