... (Ellipsis)
 
Used in place of procedure parameter to pass a variable number of arguments

Syntax

Declare { Sub | Function } proc_name cdecl ( param As datatype, ... )

Description

The ellipsis (three dots "...") is used in procedure declarations and definitions to indicate a variable argument list. A first argument must always be specified and the function must be called with the C calling convention cdecl.

Example

Declare Function FOO cdecl (X As Integer, ...) As Integer


Differences from QB

  • New to FreeBASIC

See also