Re: How to write function with multiple parameters...??
- From: Ulrich Eckhardt <doomster@xxxxxxxx>
- Date: Sun, 30 Oct 2005 17:36:46 +0100
Bore Biko wrote:
> I don't know hopw to do this,
> like "printf", or "sprintf", I know
> they use a stack but how to make
> my own...??
So you don't mean 'multiple parameters' but 'a variable number of
parameters', I guess. These functions are called 'variadic' and
implemented with va_list and associated macros. Use google to find out
more and don't hesitate to ask here if you encounter problems.
Uli
.
- Prev by Date: Re: OT: Whinging (was DJ Bernstein's str library)
- Next by Date: Re: how to get 0.000001 with printf?
- Previous by thread: Re: Avaliable symbol table library??
- Next by thread: Re: How to write function with multiple parameters...??
- Index(es):