From 980d52ad07af4538d14099ef9e8fa8bb61c7d811 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 24 Jan 2021 23:17:03 +0800 Subject: [PATCH] feat: rm unused code --- __ffi/rust_link_a/.gitignore | 2 ++ __ffi/rust_link_a/hello.c | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 __ffi/rust_link_a/.gitignore 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); }