Ken H

Ken H

  • NA
  • 646
  • 361.7k

Uncertain parameters in C

Oct 20 2013 9:23 PM
Hello everyone,
     I want to know is how to achieve the C language printf function parameter uncertainty principle(Of course, we do not use the system-supplied "stdarg.h" header file).


The following  is "printf" function prototype:


_CRTIMP int __cdecl printf(const char *, ...);


I do not think it uses a function overloading methods,As you know, when users use printf parameters are uncertain (Such as, order uncertain parameter types, the numbers of parameters uncertain and so on).I try to guess it may be using the stack.

Regards,

Ken

Thank for you.

Answers (6)