Mail Archives: djgpp/2000/04/30/05:32:36
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 -