12345678910111213141516171819202122232425262728293031323334 |
- #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;
- }
|