Ben Combee wrote in message <26233@palm-dev-forum>...
>
>> She was using DmStrCopy() ... (checking docs) ... hey!  Are the
>> docs
>>
>(http://www.palmos.com/dev/tech/docs/palmos/DataAndResourceManager.html#927
4
>> 35)
>> right??  This states that DmStrCopy() doesn't actually do any copying,
>> that it only "Check the validity of the chunk pointer for the record and
>> make
>> sure that writing the record will not exceed the chunk bounds."
>
>The docs are wrong/incomplete.  (David, Ken, anyone, please note!)
>
>DmStrCopy is exactly equivalent to a StrLen followed by a DmWrite.
>

A DmWrite() for the length returned by StrLen ... or for length+1?

If the former, then there will be no terminating NUL char written to
the database.

Perhaps Elizabeth could replace her DmStrCopy w/ the explicit
calls to StrLen and DmWrite and see if it changes the behavior.

--
-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.palmos.com/dev/tech/support/forums/

Reply via email to