home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19262 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.0 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!netcomsv!dms!lipson
  3. From: lipson@dms.agames.com (Pete Lipson)
  4. Subject: Re: Why would someone put 'char x[]' inside of a struct decl?
  5. Message-ID: <1993Jan5.174141.6608@dms.agames.com>
  6. Organization: Atari Games Corporation
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. References: <C0CB20.201@netnews.jhuapl.edu>
  9. Date: Tue, 5 Jan 1993 17:41:41 GMT
  10. Lines: 23
  11.  
  12. Mike Bandy (bandy@netnews.jhuapl.edu) wrote:
  13. : peter@deepthought.unm.edu (Peter Blemel) writes:
  14. : >I'm trying (really I am) to write a Microsoft Windows app, and I've come across
  15. : >a structure (Prog ref, vol 4 pg90) that looks something like...
  16. : >struct DialogBoxHeader {
  17. : >    char szMenuName[];
  18. : >    char szFaceName[];
  19. : >};
  20. : Look at the struct as:
  21. : struct DialogBoxHeader {
  22. :     char *szMenuName;
  23. :     char *szFaceName;
  24.  
  25.  - an array is NOT a pointer.  Why do you think this is supposed to work?
  26. -- 
  27.   /V\
  28. -/@-*\- Peter Lipson <-- lipson@agames.com   or   netcom!dms!lipson
  29.  \_o_/  Milpitas, CA <-- Atari Games
  30.    U
  31.