LibraryLink`
LibraryLink`

UTF8String_disown

disowns a string argument.

更多信息

  • Used in C/C++ code in a library function called from Mathematica.

范例

基本范例  (1)

This disowns an MTensor:

char *instring = MArgument_getUTF8String(Args[0]);
...
libData->UTF8String_disown( instring);

教程