| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 23:41 -0800 26-11-2003, Tom Becker wrote:Good point, but in MacRoman only the control characters are unprintable, so
a very simple test will at least produce something where you can tell what
it is:
void Print(FourCharCode id)
{
if (id >= 0x20202020)
printf("%.4s", (char*)&id);
else
printf("0x%08x", id);
}
I've actually used code like this before in applications where IDs were a
mixture of alpha codes and numbers.
Using (id >= 0x20202020) for the purpose you stated above is such an incredible conceptual mistake that by merely looking at it I feel my sanity is in danger. I'm serious, I'm going to close this window right away before my mind breaks down.
| References: | |
| >Re: How do I output FourCharCode variable as text? (From: Tom Becker <email@hidden>) | |
| >Re: How do I output FourCharCode variable as text? (From: Camillo Lugaresi <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.