l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social Gathering
Next Installfest:
TBD
Latest News:
Jul. 23: Linux on Laptops
Page last updated:
2001 Dec 30 17:14
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


[vox-announce] next meeting: mini presentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-announce] next meeting: mini presentation



dear all,

next meeting i'll be giving a mini presentation on how to write functions
with a variable number of arguments.

perhaps you wondered how printf can take an arbitrary number of arguments:

	#include<stdio.h>
	int main(void)
	{
		int two = 2;
		printf("%s number 1\n", "string");
		printf("%s number %d\n", "string", two);
		return(0);
	{

how do you prototype such a function?  in fact, even if you do have function
overloading, how do you handle an /arbitrary/ number of arguments?

perhaps you wondered what the "..." means in the prototype for printf:

	int printf(const char *format, ...);

i sure did.  the meaning is clear, but how do you "make it work"?

this will be the topic of my mini presentation at the next lugod meeting.

pete

-- 
"The following addresses had permanent fatal errors..."      p@dirac.org
                               -- Mailer Daemon              www.dirac.org/p



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
No Starch Press
For book donations.