]> piware.de Git - learn-rust.git/commitdiff
Call Rust function from C: Complex cases
authorMartin Pitt <martin@piware.de>
Fri, 27 Aug 2021 12:49:22 +0000 (14:49 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 27 Aug 2021 12:51:54 +0000 (14:51 +0200)
Add three functions which take/return strings and string arrays. This
creates some interesting problems how to combine the C semantics of
returning a char** with the Rust semantics of freeing objects once they
go out of scope.

This now also relies on the Rust standard library, which needs a few
system libraries. Link them.


No differences found