Search:

Type: Posts; User: abd

Search: Search took 0.00 seconds.

  1. Replies
    32
    Views
    4,361

    actually I'm building a shared library in which I...

    actually I'm building a shared library in which I wanted to use "myfree" function and I'm calling it for a different number of, as you said, sizes/representations so I think I'll follow your...
  2. Replies
    32
    Views
    4,361

    This is how I get it working: ...

    This is how I get it working:

    #include<stdio.h>
    #include<stdlib.h>

    typedef struct S1{
    int a;
    char b;
    }S1;
    void myfree(void** freeptr)
  3. Replies
    32
    Views
    4,361

    PS: Also it's was a really subtle error because I...

    PS: Also it's was a really subtle error because I was able to free the pointer successfully but not change it's address to NUL.....
  4. Replies
    32
    Views
    4,361

    I see.... I thought I was already "passing by...

    I see.... I thought I was already "passing by reference" by just passing a pointer but indeed I need to pass a reference to the pointer in self...

    So I think basically passing a pointer as...
  5. Replies
    32
    Views
    4,361

    Passing by reference of by value?

    Hi I have a "myfree" function which frees my pointer allocated memory space, but after freeing my pointers and make them NULL, when the functions returns to main the pointer address (although already...
Results 1 to 5 of 5