Re: Which function can allocate memory for a given structure type

2011-12-26 Thread Julian Elischer
On 12/26/11 8:44 AM, Rajneesh Kumar wrote: Hello sir/madam, Please help! I am trying to modify the ARP module. I want to know which function can allocate memory for a given structure type and return me back the same? e.g. I want to have declared a pointer of sockaddr_dl{} type. Now I want to

Which function can allocate memory for a given structure type

2011-12-26 Thread Rajneesh Kumar
Hello sir/madam, Please help! I am trying to modify the ARP module. I want to know which function can allocate memory for a given structure type and return me back the same? e.g. I want to have declared a pointer of sockaddr_dl{} type. Now I want to allocate memory to it. How can I do it? Thank