I'd like to be able to use SysBinarySearch to search strings which 
are stored as an array of pointers to a set of variable-length 
strings to minimize storage space.

-- The width parameter is defined in the docs as "width of an element 
comparison function". What the heck does that mean? I suspect it's 
supposed to mean the width of an element, implying that 
SysBinarySearch only works correctly with fixed length elements.

-- Is this true, or can you use SysBinarySearch to search a set of 
variable-length strings by, perhaps, defining the width as the width 
of a pointer so it knows how to move thru the array, and you deal 
with the variable-length aspect in your comparison function.

Any info from anyone who's used this routine would be welcome. It 
seems that none of the 3.5 sample code has any uses of 
SysBinarySearch, and there's nothing in the Knowledge base other than 
what's in the docs. Thanks.

Regards,
Steve Mann
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to