123456789101112131415161718192021222324252627282930313233 |
- #include "_stdio.h"
- int puts(register const char * __restrict s)
- {
- register FILE *stream = stdout;
- int n;
- __STDIO_AUTO_THREADLOCK_VAR;
- __STDIO_AUTO_THREADLOCK(stream);
-
-
- if ((n = __fputs_unlocked(s, stream)) != EOF) {
- ++n;
- if (__fputc_unlocked('\n', stream) == EOF) {
- n = EOF;
- }
- }
- __STDIO_AUTO_THREADUNLOCK(stream);
- return n;
- }
|