Home
last modified time | relevance | path

Searched refs:strspn (Results 1 – 25 of 177) sorted by relevance

12345678

/netbsd/src/tests/lib/libc/string/
Dt_strspn.c38 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/
Dlicense.c175 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/
Dparse_cross.c87 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/
Dsave-flags.c220 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/
Dexec_command.c68 if (command[strspn(command, ok_chars)] == 0 in exec_command()
69 && command[strspn(command, SPACE_TAB)] != 0) { in exec_command()
Dmac_expand.c360 ((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()
Dmatch_ops.c238 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()
Dmystrtok.c118 start += strspn(start, sep); in mystrtok_cw()
162 start += strspn(start, sep); in mystrtokq_cw()
210 cp += strspn(cp, sep); in mystrtokdq_cw()
Dvalid_hostname.c245 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/
Dtesting.h102 strspn();
104 strlen(), strspn();
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Ddsn_util.c125 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/
Dstrspn.c43 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/
Dmailwrapper.c109 cp += strspn(cp, WS); in main()
119 cp += strspn(cp, WS); in main()
/netbsd/src/usr.bin/pathchk/
Dpathchk.c112 p += strspn(p, "/"); in check()
186 s = strspn(path, charset); in portable()
/netbsd/src/bin/mkdir/
Dmkdir.c162 slash += strspn(slash, "/"); in mkpath()
165 done = (*(slash + strspn(slash, "/")) == '\0'); in mkpath()
/netbsd/src/external/bsd/libbind/dist/irs/
Dnis_sv.c246 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/
Dchdir-long.c101 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/
Dpem_lib.c506 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/
Dinetcf.c157 if (path[strspn(path, "-0123456789")] == 0) {
170 if (arg0[strspn(arg0, "0123456789")] == 0) {
/netbsd/src/lib/libc/string/
DMakefile.inc21 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/
Dstrspn.c49 strspn(const char *s1, const char *s2) in strspn() function
/netbsd/src/usr.bin/printf/
Dprintf.c240 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/
Dmkpath.c62 slash += strspn(slash, "/"); in mkpath()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/c_std/
Dcstring64 #undef strspn
87 using ::strspn;
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/c_global/
Dcstring66 #undef strspn
92 using ::strspn;

12345678