From 0804545271f0aa516e6a01504131effe93550a71 Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Sun, 21 Jun 2020 18:32:49 +0300 Subject: [PATCH] load c module example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c3dab7..b6374cf 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ $ ./aarch64-linux-android21-clang /tmp/b.c -o /tmp/a -shared ../sysroot/usr/lib/ #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__) void test(void) { - FILE* fp = popen("ls -l /proc/self/fd 2>&1", "r"); + FILE* fp = popen("ls -l /sdcard 2>&1", "r"); if (fp == NULL) LOGE("executing cmd failed"); char b[256];