이해할 수 없네요.. 쩝. 도움 부탁 합니다.
코드는 다음과 같습니다.
[code:1]
struct myStr* parse(char *str){
struct myStr* p;
void * handle;
char buf[10] ;
handle = dlopen(str, RTLD_LAZY);
// -> str(mylib.so)는 존재하지 않습니다.
if(handle == NULL){
handle = dlopen(NULL, RTLD_LAZY);
} // ---------------------- 1.
strcpy(buf, "myLib"); // ---------- 2
p = dlsym(handle, buf);
if(p == NULL)