Hello everyone, tell me, is there a direct way to ...
# kotlin-native
a
Hello everyone, tell me, is there a direct way to get a pointer to a function, for example from libc.so? I'm trying to get the logic of this code.
Copy code
void* getprt(){
    return (void *)(&open);
}
I can implement this via a.h and a.def , but would like to get rid of this
Copy code
staticCFunction(::open)
Because I'll get a link to myself.Any ideas , thanks.
c
staticCFunction(::open).rawValue
is what you want
❤️ 1