home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!moose.slac.stanford.edu!user
- From: John_Shepardson.esh@qmail.slac.stanford.edu (John Shepardson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: byte alignment problem
- Message-ID: <John_Shepardson.esh-210892102752@moose.slac.stanford.edu>
- Date: 21 Aug 92 17:17:48 GMT
- References: <1992Aug17.233739.19308@athena.cs.uga.edu>
- Sender: news@unixhub.SLAC.Stanford.EDU
- Followup-To: comp.sys.mac.programmer
- Organization: slac
- Lines: 15
- Nntp-Posting-Host: moose.slac.stanford.edu
-
- In article <1992Aug17.233739.19308@athena.cs.uga.edu>,
- kinsey@athena.cs.uga.edu (Kevin Kinsey) wrote:
- >
- > 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.
-
- Think C will not add the pad byte within a struct. I can't say about other
- compilers.
-
-
- -------------------------------------------
- John_Shepardson.esh@qmail.slac.stanford.edu
-