What is the difference between these two declarations ?
char *format = "sss jj mmm aaaa hh:mm::ss\n";
char format[] = "sss jj mmm aaaa hh:mm::ss\n";
In fact, the difference I saw is that with the * declaration I can't use strncopy with format as destination ( bus error ), but with the [] declaration I can use strncopy without problems.
What can explain this behavior ?