| /openbsd/src/games/hangman/ |
| D | getword.c | 53 size_t wordlen; in getword() local 68 wordlen = strlen(Word); in getword() 69 if (wordlen > 0 && Word[wordlen - 1] == '\n') in getword() 70 Word[wordlen - 1] = '\0'; in getword() 71 if (wordlen < MINLEN || wordlen > MAXLEN) in getword()
|
| /openbsd/src/usr.bin/mg/ |
| D | paragraph.c | 131 int wordlen; /* length of current word */ in fillpara() local 163 wordlen = 0; in fillpara() 186 if (wordlen < MAXWORD - 1) in fillpara() 187 wbuf[wordlen++] = c; in fillpara() 197 } else if (wordlen) { in fillpara() 200 newlength = clength + 1 + wordlen; in fillpara() 211 || c == '\t') && (ISEOSP(wbuf[wordlen - 1]) || in fillpara() 212 (wbuf[wordlen - 1] == ')' && wordlen >= 2 && in fillpara() 213 ISEOSP(wbuf[wordlen - 2])))) && in fillpara() 214 wordlen < MAXWORD - 1)) in fillpara() [all …]
|
| /openbsd/src/usr.bin/ftp/ |
| D | complete.c | 77 size_t matchlen, wordlen; in complete_ambiguous() local 79 wordlen = strlen(word); in complete_ambiguous() 84 char *p = words->sl_str[0] + wordlen; in complete_ambiguous() 96 for (j = wordlen ; j < strlen(words->sl_str[i]); j++) in complete_ambiguous() 102 if (matchlen > wordlen) { in complete_ambiguous() 104 lastmatch + wordlen, matchlen - wordlen); in complete_ambiguous() 129 size_t wordlen; in complete_command() local 133 wordlen = strlen(word); in complete_command() 136 if (wordlen > strlen(c->c_name)) in complete_command() 138 if (strncmp(word, c->c_name, wordlen) == 0) in complete_command()
|
| /openbsd/src/usr.bin/file/ |
| D | text.c | 138 size_t wordlen; in text_try_words() local 154 wordlen = strlen(word); in text_try_words() 156 if ((size_t)(next - cp) != wordlen) in text_try_words() 158 if (memcmp(cp, word, wordlen) != 0) in text_try_words()
|
| /openbsd/src/usr.sbin/bgpctl/ |
| D | parser.c | 528 size_t wordlen = 0; in match_token() local 533 wordlen = strlen(word); in match_token() 537 if (word == NULL || wordlen == 0) { in match_token() 551 wordlen) == 0) { in match_token() 560 wordlen) == 0) { in match_token() 605 if (parse_prefix(word, wordlen, &res.flow.src, in match_token() 615 if (parse_prefix(word, wordlen, &res.flow.dst, in match_token() 625 if (parse_prefix(word, wordlen, &res.addr, in match_token() 633 wordlen) == 0) { in match_token() 640 if (parse_asnum(word, wordlen, &res.as.as_min)) { in match_token() [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | infrun.c | 3133 int digits, wordlen; in handle_command() local 3168 wordlen = strlen (*argv); in handle_command() 3175 if (wordlen >= 1 && !strncmp (*argv, "all", wordlen)) in handle_command() 3183 else if (wordlen >= 1 && !strncmp (*argv, "stop", wordlen)) in handle_command() 3188 else if (wordlen >= 1 && !strncmp (*argv, "ignore", wordlen)) in handle_command() 3192 else if (wordlen >= 2 && !strncmp (*argv, "print", wordlen)) in handle_command() 3196 else if (wordlen >= 2 && !strncmp (*argv, "pass", wordlen)) in handle_command() 3200 else if (wordlen >= 3 && !strncmp (*argv, "nostop", wordlen)) in handle_command() 3204 else if (wordlen >= 3 && !strncmp (*argv, "noignore", wordlen)) in handle_command() 3208 else if (wordlen >= 4 && !strncmp (*argv, "noprint", wordlen)) in handle_command() [all …]
|
| /openbsd/src/games/boggle/boggle/ |
| D | bog.c | 59 int wordlen; /* Length of last word returned by nextword() */ variable 234 if (wordlen < minlength) in batchword() 512 if (wordlen < minlength) in checkdict() 565 if (mwordsp + wordlen + 1 >= &mwords[maxmspace]) { in checkdict() 574 memcpy(mwordsp, w, wordlen + 1); in checkdict() 575 mwordsp += wordlen + 1; in checkdict()
|
| D | word.c | 57 extern int wordlen; in nextword() 89 wordlen = (int) (p - buf); in nextword()
|
| /openbsd/src/usr.sbin/radiusctl/ |
| D | parser.c | 222 size_t wordlen = 0; in match_token() local 225 wordlen = strlen(word); in match_token() 237 wordlen) == 0) { in match_token() 362 if (word != NULL && wordlen >= 2 && in match_token() 363 strncmp(word, table[i].keyword, wordlen) == 0) { in match_token()
|
| /openbsd/src/usr.sbin/eigrpctl/ |
| D | parser.c | 455 size_t wordlen; in parse_prefix() local 460 wordlen = strlen(word); in parse_prefix() 470 if ((ps = malloc(wordlen - plen + 1)) == NULL) in parse_prefix() 472 strlcpy(ps, word, wordlen - plen + 1); in parse_prefix()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Encode/lib/Encode/MIME/ |
| D | Header.pm | 244 my $wordlen = $obj->{bpl} > 76 ? 76 : $obj->{bpl}; 257 if ( $obj->_encoded_word_len($octets . $seq) > $wordlen ) {
|
| /openbsd/src/usr.sbin/pppd/ |
| D | auth.c | 1201 size_t wordlen; in scan_authfile() local 1205 wordlen = strlen(word); /* NUL in struct wordlist */ in scan_authfile() 1207 wordlen); in scan_authfile() 1212 strlcpy(ap->word, word, wordlen + 1); in scan_authfile()
|
| /openbsd/src/gnu/usr.bin/perl/ |
| D | regcomp_trie.c | 411 wordlen++; \ 468 trie->wordinfo[curword].len = wordlen; \ 667 U32 wordlen = 0; /* required init */ in Perl_make_trie() local 678 PERL_UNUSED_VAR(wordlen); in Perl_make_trie() 911 U32 wordlen = 0; /* required init */ in Perl_make_trie() local 1145 U32 wordlen = 0; /* required init */ in Perl_make_trie() local
|
| /openbsd/src/usr.bin/mandoc/ |
| D | main.c | 1266 size_t wordlen; in spawn_pager() local 1287 wordlen = strcspn(pager, " "); in spawn_pager() 1288 argv[argc++] = mandoc_strndup(pager, wordlen); in spawn_pager() 1289 pager += wordlen; in spawn_pager()
|