Skip to content

stdarg.h

hengxin edited this page Nov 24, 2017 · 1 revision

stdarg.h: Variable Arguments Handling

This header defines macros to access the individual arguments of a list of unnamed arguments whose number and types are not known to the called function.

  • va_list: Type to hold information about variable arguments
  • va_start: Initialize a variable argument list
  • va_arg: Retrieve next argument
  • va_end: End using variable argument list

See miniprint.c for an illustration.

Clone this wiki locally