Skip to content
Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Procedures › va_arg

va_arg

Returns the current argument from a variable argument list.

Syntax

variable = va_arg ( argument_list, datatype )

Description

The va_arg macro allows the use of a variable number of arguments within a function:

Not supported when using -gen gcc. Use Cva_List variadic argument list type for cross platform compatibility.

Remarks

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __va_arg.

Differences from QB

  • New to FreeBASIC

See also

Examples

See the Va_First() examples.


Category: Procedures
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally