Skip to content
EntityQ248399· pop 11· linked from 81 articles

Also known as cstdarg, <stdarg.h>, <cstdarg>

'''''' is a header in the C standard library of the C programming language that allows functions to accept an indefinite number of arguments. It provides facilities for stepping through a list of function arguments of unknown number and type. C++ provides this functionality in the header .

~7 min read

Article

9 sections
Contents
  • Creating variadic functions
  • stdarg.h types
  • stdarg.h macros
  • Accessing the arguments
  • Passing unnamed arguments to other calls
  • Type safety
  • Example
  • {{mono|<varargs.h>}}
  • References

'''' is a header in the C standard library of the C programming language that allows functions to accept an indefinite number of arguments. It provides facilities for stepping through a list of function arguments of unknown number and type. C++ provides this functionality in the header .

The contents of are typically used in variadic functions, though they may be used in other functions (for example, vprintf) called by variadic functions.

Available in 7 languages

via Wikidata sitelinks · CC0

Connections

Categories