Paul Herring wrote:

> But not (necessarily) floating point 0.0

That's actually a good point (pun intended?)

K&R's strcpy function, the one I posted, is byte-oriented. (Yeah, I know, a
char isn't always a byte, and a byte isn't always 8 bits, but I'll use those
definitions as reference points).

That strcpy function breaks down with multibyte languages like Chinese. The
second byte of a double-byte character could be 0, so a bytewise copy could
easily stop before the end of a string.

I wonder what the ramifications will be for Windows Vista. Will a char still
be an 8-bit byte? And how about Unicode? Can you have a 0 byte in a Unicode
character?

I suspect there is a fair amount of strcpy rewriting in our future.

Cordially,

Kerry Thompson




To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to