fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char s[]= 'ABCDEFGHIJ';
  5. char *P = strnset((char *)str, "K", 6);
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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';
       ^
stdout
Standard output is empty