Here is my structure

Code:
typedef struct myBuff
{
    int size;
    char *buffer;
} myBuff;
How to allocate the memory for the buffer variable, please help me