home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!ogicse!emory!athena.cs.uga.edu!kinsey
- From: kinsey@athena.cs.uga.edu (Kevin Kinsey)
- Newsgroups: comp.sys.mac.programmer
- Subject: byte alignment problem
- Message-ID: <1992Aug17.233739.19308@athena.cs.uga.edu>
- Date: 17 Aug 92 23:37:39 GMT
- Article-I.D.: athena.1992Aug17.233739.19308
- Sender: kinsey@athena.cs.uga.edu (Kevin Kinsey)
- Organization: University of Georgia, Athens
- Lines: 15
-
- a quick question:
-
- if given a struct { char a; long b;} x;, what is the best method
- to create a buffer that contains 'a' followed by 'b' WITHOUT the
- implicit padding within the struct. This data must be written out
- such that it can be read by a machine that expects the long to
- straddle an even address boundary.
-
- any pointers about how to do this?
-
- kevin
- -----
- kinsey@athena.cs.uga.edu
- University of Georgia
- Athens, GA 30309
-