Text File

Aucbvax.5607 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Sun Dec 27 13:07:56 1981 Reply to: char arrays >From gwyn@UTEXAS-11 Sun Dec 27 12:53:53 1981 struct { char foo[25]; int bar; } array[10]; on a PDP-11 (for example) reserves (25+1+2)*10 bytes of storage. The +1 is required to perform word alignment (not necessary on VAX). I don't know why your bug happened; most likely are (1) coding error or (2) compiler bug. Incidentally, typedef char foo[3]; really does make "foo" a 3-byte long data type (amazing!). -------

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.