9/23 let's say there's a C library you want to use called libmdn.so.
I think to load it you'd go something like:
static { System.loadLibrary("mdn"); }
However, let's say that a function call looked like this:
mdn_result_t mdn_encodename(int actions, const char
*from, char *to, size_t tolen)
since mdn_result_t is probably a typedef or struct,
does that mean you'd have to write another C wrapper
to make mdn_result_t make sense to Java?
\_ Yes. BTW, you probably can't call the c function directly
without risking random segv's in your program. |