l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2008 Nov 08 13:52
[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:

	int main(void)
		int two = 2;
		printf("%s number 1\n", "string");
		printf("%s number %d\n", "string", two);

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.


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

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

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

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
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:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.