Adam Wozniak wrote in message <7662@palm-dev-forum>...
>
>John Marshall wrote:
>
>> For example, rather than memset()
>> from string.h you're encouraged to use the system function MemSet()
>> from MemoryMgr.h, thus saving a bit of memory and so on.
>
>As an aside, this is one of the first things which bit me while learning to
code for PalmOS:
>
>void *memset(void *s, int c, size_t n);
>Err MemSet (VoidPtr dstP, ULong numBytes, Byte value);
>
>The last two parameters are reversed :(
>
It took me a few second looks to believe that when
I saw it in the docs the first time too.
I really think that Palm should have taken more care
about violating people's long-ingrained practices.
Better yet, they should've just stuck w/ the standard
names ... but even w/ the PalmNamed versions they
could've at least kept the parameters in the same
order for analogous functions.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html