Re: Converting four char code
Re: Converting four char code
- Subject: Re: Converting four char code
- From: Andrew Pinski <email@hidden>
- Date: Mon, 10 Feb 2003 20:21:42 -0800
'AAPL'&0xFF == 'L'
('AAPL'>>8)&0xFF == 'P'
('AAPL'>>16)&0xFF == 'A'
('AAPL'>>24)&0xFF == 'A'
Note I used 'AAPL' as that is apple's ticker id.
Thanks,
Andrew Pinski
On Monday, Feb 10, 2003, at 19:37 US/Pacific, Greg Hulands wrote:
Hi,
Can anyone tell me how to convert a four-char code into 4 chars?
eg.
'APPL' into 'A' 'P' 'P' 'L'
Thanks,
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.