とりあえずこれはUnixじゃなくてCの質問でしょ。
>>657 > このライブラリには、AとBという関数があります。そのプロトタイプは次のようになっています。
> int A (int count, char* buf);
> int B (const char *port, const char *prot);
(snip)
> B関数を使いたいとしたら、今の自分の知識だけで書くとこうなります。
> void *dl_handle;
> int (*bPtr)(const char, const char); //ここが?です。
int (*bPtr)(const char *, const char *);
こうじゃないのかな。
>
> dl_handle = dlopen("libsafec.so", RTLD_NOW);
> if (dl_handle == NULL){
> 省略
> }
> bPtr = (int (*)(const char, const char)) dlsym(dl_handle, "B");
ここも同じ。typedef したらいい。