Hello,

 

If I have following functions

 

function_alloc_chars( char** s)

function_free_chars(char* s)

 

 

I want to expose on function in c# 

string function_get_chars();

 

this function should get the chars , copy them in C# chars, and free native chars also, so I don’t

leak.

 

How do it do that ?

 

Thanks,

Pinakin.