~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to examples/OCaml-Kaleidoscope/Chapter7/bindings.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
 
 
3
/* putchard - putchar that takes a double and returns 0. */
 
4
extern double putchard(double X) {
 
5
  putchar((char)X);
 
6
  return 0;
 
7
}
 
8
 
 
9
/* printd - printf that takes a double prints it as "%f\n", returning 0. */
 
10
extern double printd(double X) {
 
11
  printf("%f\n", X);
 
12
  return 0;
 
13
}