Quote:
|
Originally Posted by Rickertsen2
|
Thanks for the link, but can the documentation be found there? If so, I don't see it. They tell you how to use strings, etc... But they do not show you how they're memory allocation for their strings work. I suppose they don't except anyone to use it, so they didn't explain how?
I'm talking about like
typedef struct ptr PTR;
typedef struct
{
int value;
PTR *next, *prev;
} ptr;
.....code
PTR *temp;
how to create memory that is not deleted after the function is executed besides a static declaration, or a global declaration of an array.
I would like to know how to do like , temp = (PTR*)malloc(sizeof(PTR));