Thanks for book suggestion
"Joe Wright" <joewwright@earthlink.net> a écrit dans le message de
news:3FCA1593.5BD@earthlink.net...[color=blue]
> Eric Boutin wrote:[color=green]
> >
> > Hi ! I would like to generate an array of type char[n][5];
> >
> > I just dont really figure out how I could do it with malloc or calloc..[/color][/color]
I[color=blue][color=green]
> > mean.. I know how to allocate a simple array with both of them; but[/color][/color]
when it[color=blue][color=green]
> > comes to a 2 dimension array.. I'm stuck.. I mean.. if I ask for[/color][/color]
char**[color=blue][color=green]
> > array = malloc(5*n*sizeof(char));, it'll return a void*, not a void**..
> > anyone have an idea ?[/color]
>
> You clearly need a better C book. K&R2 comes to mind. Chapter 5
> pertains. There is also Steve Summit's C FAQ. Section 6 pertains. Read
> more.
> --
> Joe Wright
http://www.jw-wright.com
> "Everything should be made as simple as possible, but not simpler."
> --- Albert Einstein ---[/color]