JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getop ... t_long(int argc , char * const argv[] , const char * optstring , const struct option * longopts , int * longindex ); int getopt_long_only(int argc , char * co ... nst argv[] , const char * optstring , const struct option * longopts , int * longindex ); glibc 向けの機能検査マクロの要件 ( featur ... ... プトでなければならない。 #! interpreter [optional-arg] 後者の詳細は、後ろの「インタープリタースクリプト」の節を参照のこと。 argv is an array of pointers to strings passed to the new program as its command-line arguments. By convention, the first of th ... ese strings (i.e., argv[0] ) should contain the filename associated with the file being executed. The argv array must be terminated by a NULL poin ... ter. (Thus, in the new program, argv[argc] will be NULL.) envp is an array of pointers to strings, conventionally of the form key=value , which are passed as t ... ... s 8192 # The stack size limit is 8 MB (0x800000 bytes) $ ./a.out hola salut servus Thread 1: top of stack near 0xb7dd03b8; argv_string=hola Thread 2: top of stack near 0xb75cf3b8; argv_string=salut Thread 3: top of stack near 0xb6dce3b8; argv_string= ... B のスタックサイズを明示的に設定している。 $ ./a.out -s 0x100000 hola salut servus Thread 1: top of stack near 0xb7d723b8; argv_string=hola Thread 2: top of stack near 0xb7c713b8; argv_string=salut Thread 3: top of stack near 0xb7b703b8; argv_string= ... t() */ pthread_t thread_id; /* ID returned by pthread_create() */ int thread_num; /* Application-defined thread # */ char *argv_string; /* From command-line argument */ }; /* Thread start function: display address near top of our stack, and return up ... ... locale.h > #include < wchar.h > #include < stdio.h > #include < string.h > #include < stdlib.h > int main(int argc, char *argv[]) { size_t mbslen; /* Number of multibyte characters in source */ wchar_t *wcs; /* Pointer to converted wide character st ... ring */ if (argc < 3) { fprintf(stderr, "Usage: %s <locale> <string>\n", argv[0]); exit(EXIT_FAILURE); } /* Apply the specified locale */ if (setlocale(LC_ALL, argv[1]) == NULL) { perror("setlocale"); ... exit(EXIT_FAILURE); } /* Calculate the length required to hold argv[2] converted to a wide character string */ mbslen = mbstowcs(NULL, argv[2], 0); if (mbslen == (size_t) -1) { perror("mbsto ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。