At 4:23 PM +0200 3/29/01, Alexandre Duret-Lutz wrote:
>Is there a maximal length for SysLib names? (the name pointed to
>by the first entry in the library dispatch table, i.e., the one
>that you pass the SysLibFind)  I can't find any mention of
>such limitation.  Can I assume it can be arbitrary long?

There doesn't appear to be a hard-coded limit on the length of a database name as far 
as the name-search routines are concerned; they either use StrCompare or an unrolled 
length-independent variant of StrCompare. However, other parts of the OS do have 
limits on the length of names, for example, 32 bytes for the names of memory cards, 
storage heaps, etc. So it looks like you're safe if you keep the library name to 32 
characters or less (31 for name + 1 for C-string terminator). The various tools which 
generate prc files probably also have built-in limitations.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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