|
-
Portable C
Could someone give me an example of using typedefs or something to make a C programs (datatypes) portable? Right now, I'm writing a server, and for anything that I'd need to send through the Internet, I just use bit masks to put some part of an integer into, say, 2 characters, and send those two characters. (And then I'd just put them into an Integer on the other end). I was wondering if there was a better way of doing this.
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
|
|