But sprintf is not compatible with StrPrintF as Palm has written it.  Even
if the header redefines sprintf as StrPrintF, StrPrintF cannot handle the
same format specifiers as sprintf.  Giving the suggestion that sprintf is
supported in the Palm OS will also give the impression that the function is
complete and possibly cause problems later when they try something like
formatting a floating point variable.
Why confuse people?  If we are going to give advice to other programmers,
lets give them what will work for all situations. And not give advice that
will work in *most* cases.

----- Original Message -----
From: "Sreenivas Reddy" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 10:52 AM
Subject: Re: Link error: "sprintf" is undefined


>
> Hi all,
>
> You can use the C calls like sprintf(). But you need to include the header
> file "StdIOPalm.h".
> In the header file I mentioned just now it is defined like this... (for
> Example)
>
> #define  sprintf  StrPrintF
>
> What this does is if you call sprintf() then (If the header file is
> included)
> OS automatically replaces sprintf() with StrPrintF.
> So if we want we can use C Calls, but OS internally replaces them by the
> equivalent.
>
> Thanks,
> Sreenivas Reddy
> Developers' Nation DTS Engineer
> Developers' Nation provides Palm OS Technical Support with a guaranteed
> response time.  Go to www.devnation.net
> Developers' Nation is the fastest, most reliable and affordable way to
> resolve your technical issues.
>
>




-- 
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