1 //===-- RuntimeLib.lc - LLVM Standard C Runtime Library -----------*- C -*-===//
3 // This file contains definitions of C functions that are useful to get LLVM
4 // programs up and running. This library of functions is automatically linked
5 // into programs loaded into LLI.
7 // This file is compiled by the LLVM port of GCC to get LLVM code.
9 //===----------------------------------------------------------------------===//
11 // Prototypes for functions exported by LLI directly.
15 // The puts() function writes the string pointed to by s, followed by a
16 // NEWLINE character, to the standard output stream stdout. On success the
17 // number of characters written is returned; otherwise they return EOF.
19 int puts(const char *S) {
21 while (*Str) putchar(*Str++);