boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

013-printf-string.c (373B)


      1 /* printf("%s") — exercises vfprintf's string-conversion branch on top
      2  * of the va_arg pull. 04 covers the no-conversions path, 05 covers
      3  * %d. This pins %s, which is the conversion the most code paths in
      4  * tcc.c rely on (printf("%s\n", error_msg) etc.). */
      5 extern int printf (char const *fmt, ...);
      6 
      7 int
      8 main (void)
      9 {
     10   printf ("hello, %s\n", "world");
     11   return 0;
     12 }