JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... ブラリをロードし、2.0 の余弦を表示する。 #include < dlfcn.h > int main(int argc, char **argv) { void *handle = dlopen ("/lib/libm.so", RTLD_LAZY); double (*cosine)(double) = dlsym(handle, "cos"); printf ("%f\n", (*cosine)(2.0)); dlclose(handle); } この ... < dlfcn.h > int main(int argc, char **argv) { void *handle; double (*cosine)(double); char *error; handle = dlopen ("/lib/libm.so", RTLD_LAZY); if (!handle) { fputs (dlerror(), stderr); exit (1); } cosine = dlsym(handle, "cos"); if ((error = dlerror ... ... ブラリをロードし、2.0 の余弦を表示する。 #include < dlfcn.h > int main(int argc, char **argv) { void *handle = dlopen ("/lib/libm.so", RTLD_LAZY); double (*cosine)(double) = dlsym(handle, "cos"); printf ("%f\n", (*cosine)(2.0)); dlclose(handle); } この ... < dlfcn.h > int main(int argc, char **argv) { void *handle; double (*cosine)(double); char *error; handle = dlopen ("/lib/libm.so", RTLD_LAZY); if (!handle) { fputs (dlerror(), stderr); exit (1); } cosine = dlsym(handle, "cos"); if ((error = dlerror ... ... ブラリをロードし、2.0 の余弦を表示する。 #include < dlfcn.h > int main(int argc, char **argv) { void *handle = dlopen ("/lib/libm.so", RTLD_LAZY); double (*cosine)(double) = dlsym(handle, "cos"); printf ("%f\n", (*cosine)(2.0)); dlclose(handle); } この ... < dlfcn.h > int main(int argc, char **argv) { void *handle; double (*cosine)(double); char *error; handle = dlopen ("/lib/libm.so", RTLD_LAZY); if (!handle) { fputs (dlerror(), stderr); exit (1); } cosine = dlsym(handle, "cos"); if ((error = dlerror ... ... ブラリをロードし、2.0 の余弦を表示する。 #include < dlfcn.h > int main(int argc, char **argv) { void *handle = dlopen ("/lib/libm.so", RTLD_LAZY); double (*cosine)(double) = dlsym(handle, "cos"); printf ("%f\n", (*cosine)(2.0)); dlclose(handle); } この ... < dlfcn.h > int main(int argc, char **argv) { void *handle; double (*cosine)(double); char *error; handle = dlopen ("/lib/libm.so", RTLD_LAZY); if (!handle) { fputs (dlerror(), stderr); exit (1); } cosine = dlsym(handle, "cos"); if ((error = dlerror ... ... 、場面に応じて tgamma (3) か lgamma (3) を使うこと。 ガンマ関数の定義については、 tgamma (3) を参照のこと。 *BSD版 4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数 gamma () が含まれており、期待通りガンマ関数を計算できる。 glibc版 Glibcは、関数 ... ... 、場面に応じて tgamma (3) か lgamma (3) を使うこと。 ガンマ関数の定義については、 tgamma (3) を参照のこと。 *BSD版 4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数 gamma () が含まれており、期待通りガンマ関数を計算できる。 glibc版 Glibcは、関数 ... ... 、場面に応じて tgamma (3) か lgamma (3) を使うこと。 ガンマ関数の定義については、 tgamma (3) を参照のこと。 *BSD版 4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数 gamma () が含まれており、期待通りガンマ関数を計算できる。 glibc版 Glibcは、関数 ... ... ている関数の多くは標準 C ライブラリ ( libc ) のものである。 また、いくつかの関数は、他のライブラリ (例えば、数学ライブラリの libm やリアルタイムライブラリ librt ) のものである。後者の場合は、マニュアルページに、 必要なライブラリとリンクするために必要な ... ... nclude < dlfcn.h > int main(int argc, char **argv) { void *handle; double (*cosine)(double); char *error; handle = dlopen("libm.so", RTLD_LAZY); if (!handle) { fprintf(stderr, "%s\n", dlerror()); exit(EXIT_FAILURE); } dlerror(); /* Clear any existing ... ... at libcrypt Lb libcrypt libcurses Lb libcurses libedit Lb libedit libi386 Lb libi386 libipsec Lb libipsec libkvm Lb libkvm libm Lb libm libmenu Lb libmenu libossaudio Lb libossaudio libposix Lb libposix libresolv Lb libresolv libtermcap Lb libtermcap ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。