1 //===-- io.c - IO routines for LLVM libc Library ------------------*- C -*-===//
3 // A lot of this code is ripped gratuitously from glibc and libiberty.
5 //===----------------------------------------------------------------------===//
9 // The puts() function writes the string pointed to by s, followed by a
10 // NEWLINE character, to the standard output stream stdout. On success the
11 // number of characters written is returned; otherwise they return EOF.
13 int puts(const char *S
) {
15 while (*Str
) putchar(*Str
++);