implicit declaration of

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-05-19T14:39:17Z Indexed on 2010/05/19 14:40 UTC
Read the original article Hit count: 143

Filed under:
 int i=0; char **mainp;
for(i=0;i<2;++i)
 {  mainp[i]=malloc(sizeof(char)*200);
   if(!scanf("%[^#],#",mainp[i]))
     break;
   if(i<2)
   scanf("%[^#],#",mainp[i]);
  }

why does gcc send me that warnings

warning: implicit declaration of function ‘scanf’ warning: incompatible implicit declaration of built-in function ‘scanf’ warning: ‘mainp’ may be used uninitialized in this function

© Stack Overflow or respective owner

Related posts about c