boot2

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

014-printf-mixed.c (391B)


      1 /* printf with %s + %d + %x in one call — three va_arg pulls of two
      2  * different widths/types, plus three vfprintf conversion branches.
      3  * Catches bugs where one pull works in isolation (covered by 05/13)
      4  * but the second/third pull walks the va_list off the rails. */
      5 extern int printf (char const *fmt, ...);
      6 
      7 int
      8 main (void)
      9 {
     10   printf ("%s=%d %x\n", "answer", 42, 255);
     11   return 0;
     12 }