"Makheshwar Babu" <[EMAIL PROTECTED]> wrote in message
news:53916@palm-dev-forum...
>
> Hi,
>     Does palm support multiple parameters in a function?  If so how do
we
> implement it?
>
>     printf () function can take multiple parameters in it?  i would
like to
> have a function similar to that.

It is an issue of the compiler, not the OS.  You can use standard C
procedures for doing variable argument functions.  Declare the function
using "...", then dereference using the macros defined in the <stdarg.h>
header.  If you're using CodeWarrior, you need to add {Compiler}/MSL to
your system access paths to get access to the standard headers.

There are also definitions for these in unix_stdarg.h in the Palm OS
SDK.  These will also work and don't require changing access paths.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to