Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: DustyMx
  • Order by date
  1. DustyMx

    How to mutually link two structures?

    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
  2. DustyMx

    Obtaining memory block size

    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...
  3. DustyMx

    Obtaining memory block size

    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.

Part and Inventory Search

Back
Top