提交 d02c50d6 编写于 作者: R Rich Felker

minor optimization in puts: use inline putc_unlocked macro for newline

上级 1477a3be
......@@ -4,7 +4,7 @@ int puts(const char *s)
{
int r;
FLOCK(stdout);
r = -(fputs(s, stdout) < 0 || putchar('\n') < 0);
r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
FUNLOCK(stdout);
return r;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册