Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Can you write function similar to printf()?
Here, we write a program similar to printf().

#include <stdarg.h>
int printf(const char * restrict fmt, ...) 
{
   va_list list;
   int i;
   va_start(list, fmt);
   i = vfprintf(stdout, fmt, list);
   va_end(list);
   return i;
}
Posted By: Name:Rajesh Kr URL: Can you write function similar to printf()?