Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 05 Jun 2011 06:10:02 -0500 Message-ID: <4DEB6410.410F@mindspring.com> Date: Sun, 05 Jun 2011 07:10:08 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: offsetof() Macro Attempt References: <4DE92C83.824@mindspring.com> <4DEA0DB0.5BE6@mindspring.com> <4DEA636F.7BF2@mindspring.com> <4DEA7FEE.5C72@mindspring.com> <4DEA89A8.47C0@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 23 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.217.108 X-Trace: sv3-IXYadsj1BuiDcXyMwokVls/NYL91FXhAIWM7cOhNM8/iUeqUJwtH2gnNxUagiCS7ox3jsBqvt8dqm3X!fH7N3PmRnKRRdM3vC5Chl1KU6wkzpg+CgN82zA9ySOEzpJbpxssi8q0RAnq7c4Kpp3ypMIsALx/I!Pvji8wWw8no= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1733 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:5478 Shao Miller wrote: > > On 6/4/2011 2:38 PM, pete wrote: > > pete wrote: > > char array[][1 + sizeof (void*)] = {0}; > Compiling with GCC, the compiler complained to me that there were > missing braces around the initializer. When I used: > > char array[][1 + sizeof (void*)] = {{0}}; > > it liked that better. Thank you. I think I meant to write char array[1][1 + sizeof (void*)] = {0}; instead. -- pete