|
-
Dec 7th, 2002, 09:56 PM
#1
Thread Starter
Hyperactive Member
Macros...humm
I have this macros....
is there anyway i can make another one to convert the madePkt Back to the 2 ascii chars that made it up ?
typedef unsigned short p_type;
/*Make a Packet ID from 2 ASCII Chars */
#define make_pkt(a,b) p_type(((a)&255) | (b)<<8)
#define madePkt make_pkt ('C','H')
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|