prog.c: In function ‘main’:
prog.c:4:12: warning: character constant too long for its type
char s[]= 'ABCDEFGHIJ';
^~~~~~~~~~~~
prog.c:4:12: error: invalid initializer
prog.c:5:12: warning: implicit declaration of function ‘strnset’ [-Wimplicit-function-declaration]
char *P = strnset((char *)str, "K", 6);
^~~~~~~
prog.c:5:28: error: ‘str’ undeclared (first use in this function)
char *P = strnset((char *)str, "K", 6);
^~~
prog.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:12: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
char *P = strnset((char *)str, "K", 6);
^~~~~~~
prog.c:5:8: warning: unused variable ‘P’ [-Wunused-variable]
char *P = strnset((char *)str, "K", 6);
^
prog.c:4:7: warning: unused variable ‘s’ [-Wunused-variable]
char s[]= 'ABCDEFGHIJ';
^