why does passing C string into function as char* cause runtime error (but passing C string defined as char[] is ok)?
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?