There are equivalent functions in the library but not exact syntactic
replacements. This was intentionally done to prevent "blind ports" of code
to where it would perform poorly on the PalmOS.
This was initally done since many purely transportable C/C++ code were
authored with resource assumptions beyond what the PalmOS can offer. Thus,
you avoid any "constructor of death" that, for example, can invoke four
levels inheritance and a half meg heap allocation that can choke a Palm
device with the software engineer that did the port never even reviewing
that section of the code.
For sprintf, the closest function is StrPrintF() but remember, not all the
format fields are supported, especially %f and %g from my experience.
Steve
>From: "Rania Saymeh" <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: stdio in Palm
>Date: Thu, 12 Jul 2001 11:49:53 -0700
>
>
>is there an equivilant library for palm platform? I'm trying to use
>sprintf
>to format a string, but I guess it doesn't understand what the function
>does, is there anything to format a string in palm C ?
>
>thanx!
>***************************************************************
>Rania Saymeh
>Jr. Software Developer
>J.J. Mackay Canada Limited
>R & D Office
>Halifax, Nova Scotia
>
>Phone (902) 423- 7727 ext. 226
>email [EMAIL PROTECTED]
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/