Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 966 Bytes

File metadata and controls

23 lines (18 loc) · 966 Bytes
description Learn more about: Argument access
title Argument access
ms.date 04/04/2018
f1_keywords
c.arguments
helpviewer_keywords
argument access macros [C++]
variable-length argument lists
ms.assetid 7046ae34-a0ec-44f0-815d-3209492a3e19

Argument access

The va_arg, va_end, and va_start macros provide access to function arguments when the number of arguments is variable. These macros are defined in <stdarg.h> for ANSI/ISO C compatibility and in <varargs.h> for compatibility with UNIX System V.

Argument-access macros

Macro Use
va_arg Retrieve argument from list
va_end Reset pointer
va_start Set pointer to beginning of argument list

See also

Universal C runtime routines by category