There is also this... :)
char S[16]="";
strncpy(S,"Zoodlewurdle...",sizeof(S)-1);
Test what happens if you declare S[8] or S[32], to see why this is so effective.
I wrote my own string functions based on the logic of OpenBSD's strlcpy, aimed at ensuring a terminator byte MUST exist in the event of overflow, and standard strncpy won't do this so you have to watch carefully how you use it.
The method above is effective because the =""
at declaration ensures 0 bytes throughout, and sizeof(S)-1
ensures that if you overdo the quoted string passed to strncpy, you get truncation and no violation of the last 0 byte, so this is safe against overflow now, AND on accessing the string later. I aimed this at ANSI C so it ought to be safe anywhere.