At 10:40 PM +0200 5/26/02, Aaron Ardiri wrote:
>On Sun, 26 May 2002, Keith Rollin wrote:
>>This is questionable, not only because StrNCopy's definition has 
>>changed in practically every release of the OS
>
>since when has it changed practically every release? :P

I am, of course, overstating the situation. And I suppose that I was 
wrong to say "definition", since it's always been intended to do the 
same thing in every release. But there is something to what I say:

Palm OS 1.0: StrNCopy didn't exist.
Palm OS 2.0: Added. Works like strncpy, but on debug ROMs fills in 
any space past the terminating NUL with 0xFE values.
Palm OS 3.0: Fixed a bug with terminating the string due 
over-decrementing a counter that was treated as an unsigned value 
(and would hence wrap back to being a big positive number instead of 
being -1).
Palm OS 3.1: no change
Palm OS 3.2: no change
Palm OS 3.3: no change
Palm OS 3.5: Fixed a problem with the "fill with 0xFE" feature.
Palm OS 4.0: Added support for other character encodings. Fixed 
access to source buffer if "n" is zero.

-- Keith

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to