JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... const struct dirent **, const struct dirent **)); int alphasort(const struct dirent ** a , const struct dirent ** b ); int versionsort(const struct dirent ** a , const struct dirent ** b ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < dirent.h > in ... (), alphasort (): /* glibc 2.10 以降: */ _POSIX_C_SOURCE >= 200809L || /* glibc 2.19 以前: */ _BSD_SOURCE || _SVID_SOURCE versionsort (): _GNU_SOURCE scandirat (): _GNU_SOURCE 説明 関数 scandir () はディレクトリ dirp を走査し、 ディレクトリの各エントリーを ... elist にまとめられる。 filter が NULL ならば、すべてのエントリーが選択される。 比較関数 compar () には alphasort () 関数と versionsort () 関数を使用できる。 alphasort () は strcoll (3) を用いてディレクトリエントリーをソートする。 versionsort () は文字列 (*a ... ... const struct dirent **, const struct dirent **)); int alphasort(const struct dirent ** a , const struct dirent ** b ); int versionsort(const struct dirent ** a , const struct dirent ** b ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < dirent.h > in ... (), alphasort (): /* glibc 2.10 以降: */ _POSIX_C_SOURCE >= 200809L || /* glibc 2.19 以前: */ _BSD_SOURCE || _SVID_SOURCE versionsort (): _GNU_SOURCE scandirat (): _GNU_SOURCE 説明 関数 scandir () はディレクトリ dirp を走査し、 ディレクトリの各エントリーを ... elist にまとめられる。 filter が NULL ならば、すべてのエントリーが選択される。 比較関数 compar () には alphasort () 関数と versionsort () 関数を使用できる。 alphasort () は strcoll (3) を用いてディレクトリエントリーをソートする。 versionsort () は文字列 (*a ... ... const struct dirent **, const struct dirent **)); int alphasort(const struct dirent ** a , const struct dirent ** b ); int versionsort(const struct dirent ** a , const struct dirent ** b ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < dirent.h > in ... (), alphasort (): /* glibc 2.10 以降: */ _POSIX_C_SOURCE >= 200809L || /* glibc 2.19 以前: */ _BSD_SOURCE || _SVID_SOURCE versionsort (): _GNU_SOURCE scandirat (): _GNU_SOURCE 説明 関数 scandir () はディレクトリ dirp を走査し、 ディレクトリの各エントリーを ... elist にまとめられる。 filter が NULL ならば、すべてのエントリーが選択される。 比較関数 compar () には alphasort () 関数と versionsort () 関数を使用できる。 alphasort () は strcoll (3) を用いてディレクトリエントリーをソートする。 versionsort () は文字列 (*a ... ... const struct dirent **, const struct dirent **)); int alphasort(const struct dirent ** a , const struct dirent ** b ); int versionsort(const struct dirent ** a , const struct dirent ** b ); #include < fcntl.h > /* AT_* 定数の定義 */ #include < dirent.h > in ... (), alphasort (): /* glibc 2.10 以降: */ _POSIX_C_SOURCE >= 200809L || /* glibc 2.19 以前: */ _BSD_SOURCE || _SVID_SOURCE versionsort (): _GNU_SOURCE scandirat (): _GNU_SOURCE 説明 関数 scandir () はディレクトリ dirp を走査し、 ディレクトリの各エントリーを ... elist にまとめられる。 filter が NULL ならば、すべてのエントリーが選択される。 比較関数 compar () には alphasort () 関数と versionsort () 関数を使用できる。 alphasort () は strcoll (3) を用いてディレクトリエントリーをソートする。 versionsort () は文字列 (*a ... ... tringp); for (int j = 1; j < argc; j++) puts(argv[j]); exit(EXIT_SUCCESS); } 関連項目 sort (1), alphasort (3), strcmp (3), versionsort (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報 ... ... tringp); for (int j = 1; j < argc; j++) puts(argv[j]); exit(EXIT_SUCCESS); } 関連項目 sort (1), alphasort (3), strcmp (3), versionsort (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報 ... ... ., jan9 の順番で表示されるのには違和感がある。 これを修正するために、GNU は ls (1) に -v オプションを導入した。 この機能は versionsort (3) を使って実装されているが、この中で strverscmp () が使用されている。 このように strverscmp () の役目は2つの文字列を比較 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。