delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/25/21:50:58

Message-ID: <36D585CA.A58469FE@xyz.net>
From: =?iso-8859-1?Q?Bj=F8rn?= Hansen <viking AT xyz DOT net>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: mouse problem
References: <36D576A9 DOT 7FA01817 AT xyz DOT net> <36D201D3 DOT A6452D23 AT geocities DOT com>
Lines: 24
NNTP-Posting-Host: 207.14.89.112
X-Trace: news6.ispnews.com 919995552 207.14.89.112 (Thu, 25 Feb 1999 21:19:12 EDT)
NNTP-Posting-Date: Thu, 25 Feb 1999 21:19:12 EDT
Date: Thu, 25 Feb 1999 17:18:02 +0000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


The Beyonder wrote:

> Bjørn Hansen wrote:
> >
> > I'm writing a game and I have a function that looks like this:
> >
> > ---------------------------------------------------------------------------------------
> >
> > int *get_orders(void)
> > {
> >  int *neworders,
> >      x=mouse_x,
> >      y=mouse_y;
>
> You need to initialize "neworders", since it is a pointer, or if you
> don't want to hassale just define it as "int neworders[3]".
>

ah,  si si says the blind man.  Thank you very much that fixed my problem nicely.  :)

Bjørn

- Raw text -


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