Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!crdgw1!sungod!davidsen
From: davidsen@sungod.crd.ge.com (ody)
Newsgroups: comp.lang.c
Subject: Re: Struct definition in MS-C
Keywords: pointer, linked list, Microsoft C
Message-ID: <1766@crdgw1.crd.ge.com>
Date: 18 Aug 89 21:24:49 GMT
References: 
Sender: news@crdgw1.crd.ge.com
Reply-To: davidsen@crdos1.UUCP (bill davidsen)
Organization: General Electric Corp. R&D, Schenectady, NY
Lines: 39


  I don't know what version of MSC you used, but I suspect that you have
a typo you just don't see. I tried it on versions 3, 4, and 5 and it
worked perfectly on all of them.

Here's the output for the one on a machine which can send stuff to UNIX
easily, I used the -Fs output to generate a source listing.



                                                                       PAGE   1
                                                                       08-18-89
                                                                       17:07:11

  Line#  Source Line                          Microsoft C Compiler Version 4.85

      1  #include 
      2  
      3  struct node {
      4    char name[80];
      5    int flags;
      6    struct node *next, *prev;
      7  } *head = NULL;

Global Symbols

Name                      Class   Type              Size   Offset

head. . . . . . . . . . . global   far pointer         4    0000

Code size = 0000 (0)
Data size = 0004 (4)
Bss size  = 0000 (0)

No errors detected
================ end include ================
	bill davidsen		(davidsen@crdos1.crd.GE.COM)
  {uunet | philabs}!crdgw1!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me