Hi all,
I have a double pointer in C as follows:
void foo(char * , char**);
main( )
{
char * inbuff = {0x10,0x20};
char * outbuff;
foo(inbuff, (char **) &outbuff);
}
void foo(char *inbuff, char ** outbuff);
{
//code to manipulate inbuff and outbuff.
*outbuff = (char *) malloc(20);
}
Now I need to convert this in to C++ ? How do I do that?
How do I pass the double pointer as an argument in C++?
and can I do *outbuff in C++?
Any help would be really nice.
Regards,
Prashanth