home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14330 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!moose.slac.stanford.edu!user
  2. From: John_Shepardson.esh@qmail.slac.stanford.edu (John Shepardson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: byte alignment problem
  5. Message-ID: <John_Shepardson.esh-210892102752@moose.slac.stanford.edu>
  6. Date: 21 Aug 92 17:17:48 GMT
  7. References: <1992Aug17.233739.19308@athena.cs.uga.edu>
  8. Sender: news@unixhub.SLAC.Stanford.EDU
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: slac
  11. Lines: 15
  12. Nntp-Posting-Host: moose.slac.stanford.edu
  13.  
  14. In article <1992Aug17.233739.19308@athena.cs.uga.edu>,
  15. kinsey@athena.cs.uga.edu (Kevin Kinsey) wrote:
  16. > a quick question:
  17. >     if given a struct { char a; long b;} x;, what is the best method
  18. >     to create a buffer that contains 'a' followed by 'b' WITHOUT the
  19. >     implicit padding within the struct.
  20.  
  21. Think C will not add the pad byte within a struct. I can't say about other
  22. compilers.
  23.  
  24.  
  25. -------------------------------------------
  26. John_Shepardson.esh@qmail.slac.stanford.edu
  27.