delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/30/05:32:36

Message-ID: <390BFADC.590FB0A6@gtcom.net>
From: Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net>
X-Mailer: Mozilla 4.61 [en] (Win95; U)
X-Accept-Language: en,en-US,en-GB,ja,af
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Array swapping.
References: <390B75BB DOT 621F846A AT gtcom DOT net> <be7ngssbe6fnhur5if8j27a3ct35gpj2e9 AT 4ax DOT com> <390BAB86 DOT 7C1EF855 AT gtcom DOT net> <390BBCF8 DOT 27D2D2AC AT pop DOT gis DOT net> <390BBF21 DOT 41DAF825 AT gtcom DOT net> <83bt2s3tq8 DOT fsf AT mercury DOT st DOT hmc DOT edu>
Lines: 38
Date: Sun, 30 Apr 2000 05:20:28 -0400
NNTP-Posting-Host: 12.16.179.81
X-Trace: eagle.america.net 957086623 12.16.179.81 (Sun, 30 Apr 2000 05:23:43 EDT)
NNTP-Posting-Date: Sun, 30 Apr 2000 05:23:43 EDT
Organization: 24hoursupport.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Nate Eldredge wrote:
> 
> Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net> writes:

[snip]

> > The real problem in this is that i need to
> > change the value of a constant pointer...
> >
> > There has to be a way to do this.
> 
> The solution is to make it not constant.  Instead of `float
> foo[40][50]', you could do:
> 
> float (*foo)[50];
> foo = malloc(40 * sizeof(*foo));
> 

I tried this,I got lots of errors...
Thanks though.

Someone posted a rely simular to this,but
better...
Take a look at Horst Kraemer's reply,It is exactly
what i needed if you have any further interest.


-- 


|"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""|
|      `.`/""""""\,','            my sig is too big,      |
|SEE HIS (  /   \ \' SEE HIS      but its really cool.    |
| FACE    \/<> <>\/   SMILE                               |
|         /   W   \          Visit my ascii art site:     |
|       ,'\_|||||_/`.  http://www.gtcom.net/~krogg/ascii/ |
|     ,','   |||   `.`.     krogg DOT no DOT to DOT spam AT gtcom DOT net    |
|____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|

- Raw text -


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