Using fwrite() instead of printf()

This commit is contained in:
Pierre Pronchery 2004-07-07 21:38:49 +00:00
parent e44f258bff
commit 660d6f0709

View File

@ -43,7 +43,7 @@ static int _head_do(int flgn, char * filename)
{ {
if(c == '\n') if(c == '\n')
n++; n++;
printf("%c", c); fwrite(&c, sizeof(char), 1, stdout);
} }
if(filename != NULL) if(filename != NULL)
fclose(fp); fclose(fp);