diff --git a/__ffi/rust_link_a/.gitignore b/__ffi/rust_link_a/.gitignore new file mode 100644 index 0000000..56d1280 --- /dev/null +++ b/__ffi/rust_link_a/.gitignore @@ -0,0 +1,2 @@ +hello.o +libhello.a diff --git a/__ffi/rust_link_a/hello.c b/__ffi/rust_link_a/hello.c index d9c3002..2055656 100644 --- a/__ffi/rust_link_a/hello.c +++ b/__ffi/rust_link_a/hello.c @@ -2,10 +2,5 @@ #include "hello.h" void print_line(const char* str) { - for (int i = 0; str[i] != 0; i++) { - char c = str[i]; - printf("PUT:%d - %c\n", c, c); - } - // str++; - printf("puts:%s\n", str); + printf("%s\n", str); }