Search:

Type: Posts; User: kakarato

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,667

    Thanks for all feedback. base on statement...

    Thanks for all feedback.



    base on statement above am i right to say code below will not work correctly ?



    y.field1 = (char*)malloc(4)
    strcpy(y.field1,"123");
  2. Replies
    8
    Views
    1,667

    unable to free 1 of the struc member

    When i try code below i still able to access y.field1 value even after free it. Is it anything wrong with my code ?


    typedef struct
    {
    char* field1;
    char* field2;
    }lookup;

    void...
Results 1 to 2 of 2