Guest User

Untitled

a guest
Oct 9th, 2016
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdarg.h>
  2.  
  3. void myprintf(const char *, ...);
  4.  
  5. void myprintf(const char *fmt, ...)
  6. {
  7.     va_list args; //this is actually just a placeholder to our first (variable) argument
  8.     va_start(args, fmt); //set up our list so we can retrieve it
  9.     /****** we will do our parsing here *****/
  10.     va_end(args); //free up that allocation we just made
  11. }
RAW Paste Data