JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 2 of about 2 for cmpstringp (0.002 sec.)
Man page of QSORT 9357
QSORT Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 qsort, qsort_r - 配列を並べ変える 書式 #include < stdlib.h > void qsort(void * base , size_t nmemb , size_t size , int (* compar )(const void *, const ... ドライン引数で指定された文字列の並び換えを行う。 #include < stdio.h > #include < stdlib.h > #include < string.h > static int cmpstringp(const void *p1, const void *p2) { /* この関数の実際の引数は "char 型へのポインターのポインター" だが、 strcmp (3) の引数は ... 2) { fprintf(stderr, "Usage: %s <string>...\n", argv[0]); exit(EXIT_FAILURE); } qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp); for (int j = 1; j < argc; j++) puts(argv[j]); exit(EXIT_SUCCESS); } 関連項目 sort (1), alphasort (3), strcmp (3), versio ...
https://man.mtool.work/man/20260915/man3/qsort.3.html
Man page of QSORT 9357
QSORT Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 qsort, qsort_r - 配列を並べ変える 書式 #include < stdlib.h > void qsort(void * base , size_t nmemb , size_t size , int (* compar )(const void *, const ... ドライン引数で指定された文字列の並び換えを行う。 #include < stdio.h > #include < stdlib.h > #include < string.h > static int cmpstringp(const void *p1, const void *p2) { /* この関数の実際の引数は "char 型へのポインターのポインター" だが、 strcmp (3) の引数は ... 2) { fprintf(stderr, "Usage: %s <string>...\n", argv[0]); exit(EXIT_FAILURE); } qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp); for (int j = 1; j < argc; j++) puts(argv[j]); exit(EXIT_SUCCESS); } 関連項目 sort (1), alphasort (3), strcmp (3), versio ...
https://man.mtool.work/man/20260915/man3/qsort_r.3.html
PREV 1 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。