Home
last modified time | relevance | path

Searched refs:wordlen (Results 1 – 13 of 13) sorted by relevance

/openbsd/games/hangman/
H A Dgetword.c53 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/usr.bin/mg/
H A Dparagraph.c163 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()
212 (wbuf[wordlen - 1] == ')' && wordlen >= 2 && in fillpara()
213 ISEOSP(wbuf[wordlen - 2])))) && in fillpara()
214 wordlen < MAXWORD - 1)) in fillpara()
215 wbuf[wordlen++] = ' '; in fillpara()
237 for (i = 0; i < wordlen; i++) { in fillpara()
[all …]
/openbsd/usr.bin/ftp/
H A Dcomplete.c77 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/usr.bin/file/
H A Dtext.c138 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/usr.sbin/bgpctl/
H A Dparser.c527 size_t wordlen = 0; in match_token() local
532 wordlen = strlen(word); in match_token()
550 wordlen) == 0) { in match_token()
559 wordlen) == 0) { in match_token()
632 wordlen) == 0) { in match_token()
680 wordlen) == 0 && argc > 1) { in match_token()
696 wordlen) == 0 && argc > 1) { in match_token()
712 wordlen) == 0 && argc > 2) { in match_token()
771 wordlen) == 0 && argc > 1 && in match_token()
824 wordlen) == 0 && argc > 1) { in match_token()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dinfrun.c3133 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/games/boggle/boggle/
H A Dbog.c59 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()
H A Dword.c57 extern int wordlen; in nextword()
89 wordlen = (int) (p - buf); in nextword()
/openbsd/usr.sbin/eigrpctl/
H A Dparser.c455 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/gnu/usr.bin/perl/cpan/Encode/lib/Encode/MIME/
H A DHeader.pm244 my $wordlen = $obj->{bpl} > 76 ? 76 : $obj->{bpl};
257 if ( $obj->_encoded_word_len($octets . $seq) > $wordlen ) {
/openbsd/usr.sbin/pppd/
H A Dauth.c1252 size_t wordlen; local
1256 wordlen = strlen(word); /* NUL in struct wordlist */
1258 wordlen);
1263 strlcpy(ap->word, word, wordlen + 1);
/openbsd/gnu/usr.bin/perl/
H A Dregcomp_trie.c411 wordlen++; \
468 trie->wordinfo[curword].len = wordlen; \
655 U32 wordlen = 0; /* required init */ in Perl_make_trie() local
891 U32 wordlen = 0; /* required init */ in Perl_make_trie() local
1125 U32 wordlen = 0; /* required init */ in Perl_make_trie() local
/openbsd/usr.bin/mandoc/
H A Dmain.c1266 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()