Files
clang-p2996/llvm/runtime/GCCLibraries/libc/io.c
Reid Spencer 4b8067f37b Undo removal of the runtime libraries. While this may have been a bit
premature, these libraries will be going away for the 2.0 release. Other
arrangements for profiling, gc, etc. should be made in the next few months.

llvm-svn: 31807
2006-11-17 03:32:33 +00:00

19 lines
602 B
C

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