[A89] Re: A problem


[Prev][Next][Index][Thread]

[A89] Re: A problem




Scott:
What he meant by that, is how i was using fgetc to get integers from the 
file, he thought you would only get a char from it, when you can get 
integers also. In regard to Zeljko's way to allow one to use normal array 
notation, here's how I did it:

void start_engine(int x, int y)
{
         int (*testmap)[x]= NULL;
         testmap = calloc (y, sizeof (*testmap));
         ... More code here

And it works. Right out of the blasted FAQ that I should of looked in 
before I posted. Oops. In regards to the difference of shorts and ints, 
there is a difference, I don't know what or how. Maybe Zeljko can help with 
that, or tell me that I am wrong.

And Olle, moderately sized dynamic arrays is not what my array is, it might 
be up to 100x100 or bigger. Thanks for telling me about that function tho, 
I still might be able to use it.

To all  of you, thanks for all your help.

----
Rob Smith
Rob's Quote of this Reset:
A government that robs Peter to pay Paul can always depend upon the support 
of Paul.
- George Bernard Shaw








References: