Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

A.2.2 How Variadic Functions are Defined and Used

Defining and using a variadic function involves three steps:

  • Define the function as variadic, using an ellipsis (`...') in the argument list, and using special macros to access the variable arguments. See Receiving Arguments.
  • Declare the function as variadic, using a prototype with an ellipsis (`...'), in all the files which call it. See Variadic Prototypes.
  • Call the function by writing the fixed arguments followed by the additional variable arguments. See Calling Variadics.

 
 
  Published under the terms of the GNU General Public License Design by Interspire