From: Martin Pitt Date: Fri, 27 Aug 2021 12:49:22 +0000 (+0200) Subject: Call Rust function from C: Complex cases X-Git-Url: https://piware.de/gitweb/?p=learn-rust.git;a=commitdiff_plain;h=8c240f514e17c9a935f5f392e6a87779ae1c09e8;hp=8c240f514e17c9a935f5f392e6a87779ae1c09e8 Call Rust function from C: Complex cases 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. ---