Thanks Failure67,
I got it to work with this:
board = (char **)calloc (20, sizeof (char* )) ;
for (i=0; i<20; i++) {
board [i] = (char *)calloc (40, sizeof (char)) ;
}
Type: Posts; User: generaltso78
Thanks Failure67,
I got it to work with this:
board = (char **)calloc (20, sizeof (char* )) ;
for (i=0; i<20; i++) {
board [i] = (char *)calloc (40, sizeof (char)) ;
}
I am getting "a value of type void* cannot be assigned to entity of type char**" with that calloc declaration. Is that because I declared char **board?
Thanks
Hi guys,
We are just learning how to implement calloc, malloc and free. At the end of my program, I keep getting a "windows has triggered a break point" error. Im pretty sure that this error is...