🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1269

Re: new MSC 5.1 bug?

#1269
From: Charles Hannum
Date: Fri, 09 Feb 1990 16:53
22 lines
1178 bytes
In article <1537@husc6.harvard.edu>, ddl@husc6.harvard.edu (Dan Lanciani) says:
>
>                printf("p1 = %x, p2 = %x\n", p1, p2);

Your problem may be that you are printing out the pointers as short (16-bit)
integers.  Try:

    printf("p1 = %p, p2 = %p\n", p1, p2);

%p is the Turbo C mnemonic for "pointer".  If MSC doesn't support this, use:

    printf("p1 = %lx, p2 = %lx\n", p1, p2);

Note that I am assuming that you are using a large data model.  If not, I don't
have a clue.


Virtually,
- Charles Martin Hannum II       "Klein bottle for sale ... inquire within."
    (That's Charles to you!)     "To life immortal!"
  cmh117@psuvm.{bitnet,psu.edu}  "No noozzzz izzz netzzzsnoozzzzz..."
  c9h@psuecl.{bitnet,psu.edu}    "Mem'ry, all alone in the moonlight ..."
Technical Details
Message-ID: <90040.115357CMH117@PSUVM.BITNET>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!psuvm!cmh117
References: <1537@husc6.harvard.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!psuvm!cmh117
From: CMH117@psuvm.psu.edu (Charles Hannum)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc
Subject: Re: new MSC 5.1 bug?
Message-ID: <90040.115357CMH117@PSUVM.BITNET>
Date: 9 Feb 90 16:53:57 GMT
References: <1537@husc6.harvard.edu>
Organization: Penn State University
Lines: 22