Using fwrite() instead of printf()
This commit is contained in:
parent
e44f258bff
commit
660d6f0709
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user