Why does changing the content of a char pointer passed as a parameter to a function lead to a SIGSEGV?
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?