Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / machine / msp430 / tiny-puts.c
blob6a59f23b070038762aa245f9849b26fdd011ffef
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <newlib.h>
6 int write (int fd, const char *buf, int len);
8 int
9 __wrap_puts (const char * s)
11 int res = write (1, s, strlen (s));
12 if (res == EOF)
14 write (1, "\n", 1);
15 return EOF;
17 return write (1, "\n", 1);
20 int puts (const char * s) __attribute__ ((weak, alias ("__wrap_puts")));