| /netbsd/src/tests/lib/libc/string/ |
| D | t_strspn.c | 38 ATF_TC(strspn); 39 ATF_TC_HEAD(strspn, tc) in ATF_TC_HEAD() argument 44 ATF_TC_BODY(strspn, tc) in ATF_TC_BODY() argument 46 ATF_CHECK_EQ(strspn("abcdefghijklmnop", ""), 0); in ATF_TC_BODY() 47 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "a"), 1); in ATF_TC_BODY() 48 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "b"), 0); in ATF_TC_BODY() 49 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "ab"), 2); in ATF_TC_BODY() 50 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abc"), 3); in ATF_TC_BODY() 51 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abce"), 3); in ATF_TC_BODY() 52 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abcdefghijklmnop"), 16); in ATF_TC_BODY() [all …]
|
| /netbsd/src/external/bsd/pkg_install/dist/lib/ |
| D | license.c | 175 for (line += strspn(line, license_spaces); line; ) { in add_licenses() 176 next = line + strspn(line, license_chars); in add_licenses() 180 line = next + strspn(next, license_spaces); in add_licenses() 212 if (strspn(license, license_chars) != len) { in acceptable_license() 228 license += strspn(license, license_spaces); in acceptable_pkg_license_internal() 233 license += strspn(license, license_spaces); in acceptable_pkg_license_internal() 251 license += strspn(license, license_spaces); in acceptable_pkg_license_internal() 253 len = strspn(license, license_chars); in acceptable_pkg_license_internal() 268 len = strspn(license, license_spaces); in acceptable_pkg_license_internal() 311 len = strspn(license, license_spaces); in acceptable_pkg_license_internal() [all …]
|
| /netbsd/src/external/bsd/pkg_install/dist/add/ |
| D | parse_cross.c | 87 if ((*machine_arch)[strspn(*machine_arch, safeset)] != '\0') { in parse_cross() 90 if (*opsys != NULL && (*opsys)[strspn(*opsys, safeset)] != '\0') { in parse_cross() 94 (*os_version)[strspn(*os_version, safeset)] != '\0') { in parse_cross()
|
| /netbsd/src/external/bsd/ntp/dist/sntp/libopts/ |
| D | save-flags.c | 220 str += strspn(str, white); in save_flags_str2mask() 231 str += 1 + strspn(str + 1, white); in save_flags_str2mask() 236 val_len = strspn(str, name_chars); in save_flags_str2mask()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | exec_command.c | 68 if (command[strspn(command, ok_chars)] == 0 in exec_command() 69 && command[strspn(command, SPACE_TAB)] != 0) { in exec_command()
|
| D | mac_expand.c | 360 ((cp[len = strspn(cp, MAC_EXP_WHITESPACE)] == '{') ? \ 394 *bp = cp + strspn(cp, MAC_EXP_WHITESPACE); in mac_exp_extract_curly_payload() 429 op_len = strspn(cp, "<>!=?+-*/~&|%"); /* for better diagnostics. */ in mac_exp_parse_relational() 601 start = (cp += strspn(cp, MAC_EXP_WHITESPACE)); in mac_expand_callback() 603 if ((ch = cp[tmp_len = strspn(cp, MAC_EXP_WHITESPACE)]) == 0) { in mac_expand_callback() 690 while (*(cp += strspn(cp, mc->filter))) in mac_expand_callback()
|
| D | match_ops.c | 238 if (addr[strspn(addr, V6_ADDR_STRING_CHARS)] != 0) in match_hostaddr() 292 || pattern[strspn(pattern, V4_ADDR_STRING_CHARS)] == 0 in match_hostaddr() 293 || pattern[strspn(pattern, V6_ADDR_STRING_CHARS "[]/")] != 0) in match_hostaddr()
|
| D | mystrtok.c | 118 start += strspn(start, sep); in mystrtok_cw() 162 start += strspn(start, sep); in mystrtokq_cw() 210 cp += strspn(cp, sep); in mystrtokdq_cw()
|
| D | valid_hostname.c | 245 if (byte_count == 1 && byte_val == 0 && addr[strspn(addr, "0.")]) { in valid_ipv4_hostaddr() 345 len = strspn((char *) cp, "0123456789abcdefABCDEF"); in valid_ipv6_hostaddr()
|
| /netbsd/src/external/gpl3/gcc/dist/fixincludes/tests/base/ |
| D | testing.h | 102 strspn(); 104 strlen(), strspn();
|
| /netbsd/src/external/ibm-public/postfix/dist/src/global/ |
| D | dsn_util.c | 125 if ((len = strspn((char *) cp, "0123456789")) < 1 || len > DSN_DIGS2 in dsn_valid() 131 if ((len = strspn((char *) cp, "0123456789")) < 1 || len > DSN_DIGS3 in dsn_valid()
|
| /netbsd/src/common/lib/libc/string/ |
| D | strspn.c | 43 strspn(const char *s, const char *charset) in strspn() function 142 strspn(const char *s, const char *charset) in strspn() function
|
| /netbsd/src/usr.sbin/mailwrapper/ |
| D | mailwrapper.c | 109 cp += strspn(cp, WS); in main() 119 cp += strspn(cp, WS); in main()
|
| /netbsd/src/usr.bin/pathchk/ |
| D | pathchk.c | 112 p += strspn(p, "/"); in check() 186 s = strspn(path, charset); in portable()
|
| /netbsd/src/bin/mkdir/ |
| D | mkdir.c | 162 slash += strspn(slash, "/"); in mkpath() 165 done = (*(slash + strspn(slash, "/")) == '\0'); in mkpath()
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | nis_sv.c | 246 p += strspn(p, spaces); in makeservent() 258 p += strspn(p, spaces); in makeservent() 277 p += strspn(p, spaces); in makeservent()
|
| /netbsd/src/external/gpl2/xcvs/dist/lib/ |
| D | chdir-long.c | 101 size_t n_slash = strspn (s, "/"); in find_non_slash() 141 n_leading_slash = strspn (dir, "/"); in chdir_long()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/pem/ |
| D | pem_lib.c | 506 header += strspn(header, " \t"); in PEM_get_EVP_CIPHER_INFO() 510 header += strspn(header, " \t"); in PEM_get_EVP_CIPHER_INFO() 514 strspn(header+sizeof(ENCRYPTED)-1, " \t\r\n") == 0) { in PEM_get_EVP_CIPHER_INFO() 519 header += strspn(header, " \t\r"); in PEM_get_EVP_CIPHER_INFO() 534 header += strspn(header, " \t"); in PEM_get_EVP_CIPHER_INFO() 546 header += strspn(header, " \t"); in PEM_get_EVP_CIPHER_INFO()
|
| /netbsd/src/usr.sbin/tcpdchk/ |
| D | inetcf.c | 157 if (path[strspn(path, "-0123456789")] == 0) { 170 if (arg0[strspn(arg0, "0123456789")] == 0) {
|
| /netbsd/src/lib/libc/string/ |
| D | Makefile.inc | 21 SRCS+= strspn.c strstr.c swab.c strnstr.c 54 strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 \
|
| /netbsd/src/sys/arch/ia64/stand/common/ |
| D | strspn.c | 49 strspn(const char *s1, const char *s2) in strspn() function
|
| /netbsd/src/usr.bin/printf/ |
| D | printf.c | 240 fmt += strspn(fmt, SKIP1); in main() 248 fmt += strspn(fmt, SKIP2); in main() 259 fmt += strspn(fmt, SKIP2); in main()
|
| /netbsd/src/usr.bin/patch/ |
| D | mkpath.c | 62 slash += strspn(slash, "/"); in mkpath()
|
| /netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/c_std/ |
| D | cstring | 64 #undef strspn 87 using ::strspn;
|
| /netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/c_global/ |
| D | cstring | 66 #undef strspn 92 using ::strspn;
|