#include <stdio.h>
#include <stdarg.h>
void print(char *format, ...)
{
va_list list;
va_start(list, format);
int i = 0;
int c = 0;
while (format[i])
{
if (format[i] == '%' && format[i + 1] == 'd')
c++;
i++;
}
i = 0;
while (i < c)
{
}
}
int main() {
print("He%d", "f", "r");
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: