Hey guys, simple question that I don't see anything on in the String.h library and I can't remember from my C class 3 years ago. I have the following declaration:
char something[100] = "whatever";
And later in the program I call strncpy. After calling strncpy, at some later point I want to reset something to "whatever" again. Is this the best way to go about it? (If this even works, which I'll test in a second - but either way is there a better way?)
something[0] = '\0';
stncpy(something, "whatever", 7);