mxCreateStructArray and mxCreateStructMatrix field name memory management
显示 更早的评论
I've been trying to find documentation on how the field names are managed with the structure creating functions in mex. Are the field name character arrays copied before being stored internally. Do the character array pointers need to point to the first character of Matlab managed memory (e.g. initialized via mxMalloc)? The only example I could find online was the phonebook.c, which took the string from another Matlab managed variable.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 C Matrix API 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!