Thinking in C and *nix (CSC 295/282 2014S) : Outlines

Outline 13: Variadic Functions

Held: Thursday, 1 May 2014

Back to Outline 12 - Miscellaneous C Programming Issues. On to Outline 14 - Wrapup.


We consider how to write C procedures that take a variable number (and type) of parameters.

Related Pages



Writing C Functions that Take Variable Numbers of Parameters

C's "varargs" facility

Some Examples

Design Issues

Variadic Macros

#define CALL(fun, params...) fun (params)

Behind the Scenes

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.