mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-16 05:44:19 +00:00
Add String Conversion Function
This commit is contained in:
@ -4,6 +4,16 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
// Hello
|
||||
|
||||
char *result = Hello("C");
|
||||
|
||||
printf("%s\n", result);
|
||||
|
||||
DeallocString(result);
|
||||
|
||||
// Operations
|
||||
|
||||
int num1 = 1;
|
||||
int num2 = 2;
|
||||
|
||||
|
Reference in New Issue
Block a user