DenoDDeno
Powered by
LeokumaL
Deno•3y ago•
67 replies
Leokuma

FFI: How to pass a pointer to a char pointer?

How can I pass a pointer to a char pointer in order to use the C function below via FFI?
my_func(char **strp)
my_func(char **strp)

The external library is supposed to write a string to that buffer, and then Deno reads its content
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,905Members
Resources

Similar Threads

Was this page helpful?
Next page

Similar Threads

Pass string to struct FFI
HiroHHiro / help
4y ago
FFI Difference between buffer and pointer
javiJjavi / help
4y ago