title: Error 'sscanf_result' undeclared (first use in this function)
body: <p>Well that's my code and i get this errors</p>
  
  <p>In function 'main':</p>
  
  <p>41  1   [Error] 'scanf_result' undeclared (first use in this function)</p>
  
  <p>41  1   [Note] each undeclared identifier is reported only once for each function it appears in</p>
  
  <pre><code>     #include &lt;stdio.h&gt;
              #include &lt;stdlib.h&gt;
  
  
          int main ( int argc, char *argv[] )
  
        {
          int n;
            float fl,fw,wh,ww,dh,dw;
           float p,t;
          float tl,tw,a;
          float p1,p2,p3;
            printf("What's the width of the floor?");
            scanf ("%d", &amp;fw);
            printf("What's the length of the floor?");
            scanf ("%d", &amp;fl);
               printf("What's the height of the wall?");
                scanf ("%d", &amp;wh);
                 printf("What's the width of the wall?");
            scanf ("%d", &amp;ww);
           printf("What's the width of the door?");
            scanf ("%d", &amp;dw);
           printf("What's the height of the door?");
           scanf ("%d", &amp;dh);
            a=fw*fl+(wh*ww)*3-(dh*dw);
        p1=a*22;
           p2=a*23.80;
            p3=a*14;
  
              char line[100];
            int answer; 
          answer = -1;
          while (answer != 0) 
         {
          printf ("\nWhat tiles do you want?:\n");
            printf (" [1] 20sm X 30sm.");
          printf (" [2] 30sm X 41,6sm");
           printf (" [3] 25sm X 33sm");
           printf ("\nWhat do you want to do? [0 for nothing] ");
            fgets (line, sizeof(line), stdin); 
                scanf_result = scanf (line, "%d", &amp;answer);
              if ((scanf_result == 0) | (scanf_result == EOF))
             {
                 printf ("\n *** 1 - 2 or 3! ***\n");
             answer = -1; 
            }
             switch (answer)
          {
                     case 0:
            break;
           case 1:
                 printf(" Total price = %.2f lv \n",p1);
           break;
            case 2:
          printf(" Total price = %.2f lv \n",p2);
               break;
             case 3:
               printf(" Total price = %.2f lv \n",p3);
              break;
               default: 
              break;
                }
  
          }
  
                system("PAUSE");
             return 0;    
           }
  </code></pre>