I'm baffled, can anybody tell me why this is giving an error?Code:#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE*in, *out;
int ix, c;
in = fopen("fg","rt");
out = fopen("og","wt");
/*read four lines of header*/
for( ix = 0; ix < 4; ++ix ) {
while( (c = fgetc( in)) != '/n' ) {
fputc( c, out ) ;
}
}
return 0;
}
Code:C:\>gcc t.c -Wall -Werror -ansi -pedantic
t.c:16:30: multi-character character constant
C:\>