提交 2ed365a7 编写于 作者: B Ben

Didn't need asprintf.

上级 e2b25f3a
......@@ -23,9 +23,7 @@ void get_a_function(){
}
void compile_and_run(){
char *run_me;
asprintf(&run_me, "c99 -fPIC -shared fn.c -o fn.so");
if (system(run_me)!=0){
if (system("c99 -fPIC -shared fn.c -o fn.so")!=0){
printf("Compilation error.");
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册