code / print

Lines202 C188 Markdown10 make4
(14 lines)
1 #include "print.h"
2 #include <stdio.h>
3 #include <stdbool.h>
4 #include <gc.h>
6 int main(int argc, char *argv[]) {
7 GC_INIT();
9 print("My number is ", 1234, " (in hex: ", hex(1234), ") and a float is ", 2.3);
11 const char *s = String("My number is ", 1234, " (in hex: ", hex(1234), ") and a float is ", 2.3);
12 printf("String = \"%s\"\n", s);
13 return 0;