Search:

Type: Posts; User: generaltso78

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    8,803

    Thanks Failure67, I got it to work with this:...

    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)) ;
    }
  2. Replies
    5
    Views
    8,803

    I am getting "a value of type void* cannot be...

    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
  3. Replies
    5
    Views
    8,803

    MSVS has triggered a breakpoint

    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...
Results 1 to 3 of 3