Sat, 12 May 2018 14:56:17 +0200
adjusts code sample for UcxMap
docs/src/modules.md | file | annotate | diff | comparison | revisions |
1.1 --- a/docs/src/modules.md Sat May 12 14:50:09 2018 +0200 1.2 +++ b/docs/src/modules.md Sat May 12 14:56:17 2018 +0200 1.3 @@ -293,12 +293,12 @@ 1.4 char *arg = argv[i]; 1.5 size_t len = strlen(arg); 1.6 if(len > 1 && arg[0] == '-') { 1.7 - if(option) { 1.8 - fprintf(stderr, 1.9 - "Missing argument for option -%c\n", optchar); 1.10 - return 1; 1.11 - } 1.12 for(int c=1;c<len;c++) { 1.13 + if(option) { 1.14 + fprintf(stderr, 1.15 + "Missing argument for option -%c\n", optchar); 1.16 + return 1; 1.17 + } 1.18 switch(arg[c]) { 1.19 default: { 1.20 fprintf(stderr, "Unknown option -%c\n\n", arg[c]);