Sorry, I was being sloppy. I should have used MemMove or something similar in my example.
This will actually overwrite something: static UInt8 x = 0; static UInt8 y = 0; static UInt16 z = 0x1234; MemMove(&x, &z, 2); The point I was trying to make was that you can over-write a variable if you are sloppy. (And I was very sloppy in making my case!) --- Max Bian <[EMAIL PROTECTED]> wrote: > What?! How could that happen? From what I have > learned from my C class, only > the lower byte will be (and should be) assigned to > x. > > Max > --- Joe Programmer <[EMAIL PROTECTED]> > wrote: > > > > > static UInt8 x, y, z; > > x = 0x1234; // probably changes y, too > > > > > __________________________________________________ > Do You Yahoo!? > Check out Yahoo! Shopping and Yahoo! Auctions for > all of > your unique holiday gifts! Buy at > http://shopping.yahoo.com > or bid at http://auctions.yahoo.com > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
