I want to copy '\n' (i.e a newline) into a
char *src
(i.e to a pointer to a character). The apparent use will be to chcek this string with other strings I have for newlines. I need to keep it char* since my other strings are defined such.
gives me a seg error saying that SIGSEGV,Code:char *newLineTest; strcpy(newLineTest, '\n');
any idea?