i think i got an exact value so it will be properly allocated. but how can i do that? i mean sytax-ly? :)
Color* scan() is not working --- On Wed, 1/7/09, Brett McCoy <[email protected]> wrote: > From: Brett McCoy <[email protected]> > You can't return an array directly out of a function > like that, but > you can return a pointer to an array. Make you sure you > properly > allocate memory for the array, of course, and be careful of > returning > a pointer to an array created locally inside the function.
