delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/01/22:56:23

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP - real mode procedures.
Date: Wed, 02 Jun 1999 01:25:02 GMT
Organization: Monash Uni
Lines: 28
Distribution: world
Message-ID: <3754872e.8090925@newsserver.cc.monash.edu.au>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990601094329 DOT 19912M-100000 AT is>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 928286668 5175 130.194.198.138 (2 Jun 1999 01:24:28 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 2 Jun 1999 01:24:28 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

No, what he's got will work. You can do it either way, I believe the C
standard says so. In any case, the following under DJGPP:

------
#include <stdio.h>

main()
{
  int a[10];
  printf( "%p %p\n", a, &a );
  return 0;
}
-----

will print the same pointer value twice.

Davin.


On Tue, 1 Jun 1999 09:43:52 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>This is wrong.  You need to pass either "stack" or "&stack[0]" as the
>last parameter.

__________________________________________________________
       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019