Search:

Type: Posts; User: nonpuz

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    5,971

    So if we were to go with your earlier code, it...

    So if we were to go with your earlier code, it would look something like this:


    char * temp = NULL;
    char ** array = NULL;
    ...
    ...
    array =...
  2. Replies
    10
    Views
    5,971

    You should never cast the return of malloc, all...

    You should never cast the return of malloc, all it will do is hide the fact that you haven't included stdlib.h in your program

    If string is defined as char * string; that means sizeof(string) will...
  3. Replies
    10
    Views
    5,971

    array = malloc(sizeof(string)); This is...

    array = malloc(sizeof(string));

    This is surely not right. How is string declared?
  4. Replies
    10
    Views
    5,971

    Do you have any code to show us? The error means...

    Do you have any code to show us? The error means what it says, you probably tried to access memory that had already been free'd.
Results 1 to 4 of 4