blob: ab69b025134acc769d7e27b91dc8931e1a14f31b [file] [log] [blame]
#include "stdio_impl.h"
int puts(const char* s) {
int r;
FLOCK(stdout);
r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
FUNLOCK(stdout);
return r;
}