From: Eduardo M Kalinowski Newsgroups: comp.os.msdos.djgpp Subject: Re: How do i make a printf type func? Date: Sun, 13 Feb 2000 10:12:00 GMT Organization: Deja.com - Before you buy. Lines: 26 Message-ID: <88601f$hdp$1@nnrp1.deja.com> References: <001f864e DOT f7539fd2 AT usw-ex0103-018 DOT remarq DOT com> NNTP-Posting-Host: 200.219.152.90 X-Article-Creation-Date: Sun Feb 13 10:12:00 2000 GMT X-Http-User-Agent: Mozilla/4.5 [en] (X11; U; Linux 2.2.12-20 i586) X-Http-Proxy: 1.0 Proxy+ (v2.30 http://www.proxyplus.cz), 1.0 x33.deja.com:80 (Squid/1.1.22) for client 192.168.0.1, 200.219.152.90 X-MyDeja-Info: XMYDJUIDekalin To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <001f864e DOT f7539fd2 AT usw-ex0103-018 DOT remarq DOT com>, Pyros wrote: > Heya, > This is not a DJGPP question, but a C one. I hope you'll help > anyway. > Well, i want to make a function that will recieve a variable > number of arguements. The first argument tells the function > how much more arguments there are. I know how to declare it: > int func(int n,...) > > but i don't know how to address the arguments. Look in the documentation for the DJGPP C library for "varargs": # info libc a varargs -- Eduardo M Kalinowski mailto:ekalin AT iname DOT com http://move.to/hp48g Sent via Deja.com http://www.deja.com/ Before you buy.