Checkin library infrastructure for building stuff to be linked with

gccld


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-03-08 23:20:52 +00:00
parent 665ee88504
commit c1e20acc68
16 changed files with 362 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
//===-- 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;
}