S
Sudeep
Hi,
I need to create a wrapper for following native function scenario.
typedef struct _myinfo
{
char *buf;
int max_size;
}myinfo;
void getdata(struct myinfo *obj)
buf ==> is the pointer to the buffer which is filled by the getdate
function.
max_size ==> it the max. size of buf
Before calling getdata function i need to allocate the buffer and
assign its pointer to "buf" and and assign the "max_size" to the size
of that buffer. The function would just fill up that buffer to the
"max_size".
how do i deal with this ???
Thanks
Sudeep.
I need to create a wrapper for following native function scenario.
typedef struct _myinfo
{
char *buf;
int max_size;
}myinfo;
void getdata(struct myinfo *obj)
buf ==> is the pointer to the buffer which is filled by the getdate
function.
max_size ==> it the max. size of buf
Before calling getdata function i need to allocate the buffer and
assign its pointer to "buf" and and assign the "max_size" to the size
of that buffer. The function would just fill up that buffer to the
"max_size".
how do i deal with this ???
Thanks
Sudeep.