#include <stdio.h>
//被替换函数
void test(void)
{
int a=10;
char s[10]={0};
printf("a=%d,s=%s\n",a,s);
}
int main(int argc ,char **argv)
{
test();
printf("hello world!\n");
return 0;
}
//替换函数
int func(int a){
int fd=open("/dev/kd_camera_hw",O_RWD);
if(fd < 0){
printf("camera open fail\n");
return -1;
}else{
printf("camera open success!\n");
return 0;
}
}
转载于:https://www.cnblogs.com/ezway/p/6535308.html
相关资源:JAVA上百实例源码以及开源项目