[ create a new paste ] login | about

Link: http://codepad.org/WL9UyMKd    [ raw code | output | fork ]

C, pasted on Mar 30:
printf(fmt,x1,x2,x3,x4,x5,x6,x7,x8,x9,xa,xb,xc)
char fmt[];                                   
{                                              
     register char *s;                         
     register *adx, c;                        
                                             
     adx = &x1;                                
loop:                                        
     while((c = *fmt++) != %) {              
             if(c == ’\0)
                return
             putchar(c);
     }
     c = *fmt++;
     if(c == d || c == l || c == o)
        printn(*adx, c==o? 8: 10);
     if(c == s) {
          s = *adx;
          while(c = *s++)
          putchar(c);
     }
     adx++;
     goto loop;
}


Output:
In function 'printf':
Line 3: error: argument 'fmt' doesn't match prototype
Line 297: error: prototype declaration
Line 3: error: number of arguments doesn't match prototype
Line 297: error: prototype declaration
Line 9: error: stray '\342' in program
Line 9: error: stray '\200' in program
Line 9: error: stray '\231' in program
Line 9: error: expected expression before '%' token
Line 9: error: stray '\342' in program
Line 9: error: stray '\200' in program
Line 9: error: stray '\231' in program
Line 10: error: stray '\342' in program
Line 10: error: stray '\200' in program
Line 10: error: stray '\231' in program
Line 10: error: stray '\' in program
Line 10: error: stray '\342' in program
Line 10: error: stray '\200' in program
Line 10: error: stray '\231' in program
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: 'd' undeclared (first use in this function)
Line 15: error: (Each undeclared identifier is reported only once
Line 15: error: for each function it appears in.)
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: 'l' undeclared (first use in this function)
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: stray '\342' in program
Line 15: error: stray '\200' in program
Line 15: error: stray '\231' in program
Line 15: error: 'o' undeclared (first use in this function)
Line 16: error: stray '\342' in program
Line 16: error: stray '\200' in program
Line 16: error: stray '\231' in program
Line 16: error: stray '\342' in program
Line 16: error: stray '\200' in program
Line 16: error: stray '\231' in program
Line 17: error: stray '\342' in program
Line 17: error: stray '\200' in program
Line 17: error: stray '\231' in program
Line 17: error: stray '\342' in program
Line 17: error: stray '\200' in program
Line 17: error: stray '\231' in program
Line 17: warning: comparison between pointer and integer
Line 18: warning: assignment makes pointer from integer without a cast


Create a new paste based on this one


Comments: