va_list(3type)

va_list3type

Variable argument list

Usage

#include <stdarg.h>

typedef /* ... */ va_list;

Library

Standard C library (libc)

Overview

Used by functions with a varying number of arguments of varying types. The function must declare an object of type va_list which is used by the macros va_start(3), va_arg(3), va_copy(3), and va_end(3) to traverse the list of arguments.

Notes

The following headers also provide va_list: <stdio.h> and <wchar.h>.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Standards

C11, POSIX.1-2024.

History

C89, SUSv1, POSIX.1-2001.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.