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 :(
--
Adam Wozniak
Senior Software Design Engineer
Surveyor Corporation
4501 Orcutt Rd.
San Luis Obispo, CA 93401
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html