CSC 295.03 2013S Roots of Professional Practice: A Philosophy of Unix

Class 13: Varargs

Back to Class 12: Miscellaneous C Programming Issues. On to Class 14: Wrapup.

This outline is also available in PDF.

Held: Tuesday, 30 April 2013

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

Related Pages:

Overview:

Writing C Functions that Take Variable Numbers of Parameters

C's varargs facility

Some Examples

Design Issues

Variadic Macros

Behind the Scenes

Back to Class 12: Miscellaneous C Programming Issues. On to Class 14: Wrapup.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue Apr 30 12:58:05 2013.
The source to the document was last modified on Mon Jan 21 13:57:47 2013.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC295/2013S.03/outline.13.html.

You may wish to validate this document's HTML ; Valid CSS! ; Creative Commons License

Samuel A. Rebelsky, rebelsky@grinnell.edu

Copyright © 2012 Samuel A. Rebelsky. This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.