Hi guys, I would like to know if it is possible to declare two structures where struct1 has a pointer to struct2 and struct2 has a pointer to struct1, if it is possible how they should be declared?
typedef struct _AAA {
BBB *p_bbb;
} AAA;
typedef struct _BBB {
AAA *p_aaa;
} BBB;
Thanks
Thanks for the advice.
Just to let you know the only function that I found related to this topics was malloc_size() which return the all size of the block you have reserved which include the housekeeping information(which as far as I could notice it varies its size) and therefore it is not...
HI guys
Does someone know how can I retrieve the size of a memory block that had been reserved using malloc/calloc?
char *chuck = (char*) malloc(sizeof(char) * 150);
Having declared the last statement how can I get back 150?
Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.