home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!wupost!csus.edu!netcom.com!netcomsv!dms!lipson
- From: lipson@dms.agames.com (Pete Lipson)
- Subject: Re: Why would someone put 'char x[]' inside of a struct decl?
- Message-ID: <1993Jan5.174141.6608@dms.agames.com>
- Organization: Atari Games Corporation
- X-Newsreader: TIN [version 1.1 PL6]
- References: <C0CB20.201@netnews.jhuapl.edu>
- Date: Tue, 5 Jan 1993 17:41:41 GMT
- Lines: 23
-
- Mike Bandy (bandy@netnews.jhuapl.edu) wrote:
- : peter@deepthought.unm.edu (Peter Blemel) writes:
- :
- : >I'm trying (really I am) to write a Microsoft Windows app, and I've come across
- : >a structure (Prog ref, vol 4 pg90) that looks something like...
- :
- : >struct DialogBoxHeader {
- : > char szMenuName[];
- : > char szFaceName[];
- : >};
- :
- : Look at the struct as:
- :
- : struct DialogBoxHeader {
- : char *szMenuName;
- : char *szFaceName;
-
- - an array is NOT a pointer. Why do you think this is supposed to work?
- --
- /V\
- -/@-*\- Peter Lipson <-- lipson@agames.com or netcom!dms!lipson
- \_o_/ Milpitas, CA <-- Atari Games
- U
-