Home
last modified time | relevance | path

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

123456

/freebsd-14.2/contrib/netbsd-tests/lib/libc/string/
H A 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 …]
/freebsd-14.2/contrib/sendmail/libsm/
H A Dt-types.c69 || !SM_TEST(strspn(&buf[1], r) == sizeof(ll) * 2 - 1))
81 || !SM_TEST(strspn(&buf[1], r) == sizeof(ll) * 2 - 1))
92 SM_TEST(strspn(buf, r) == sizeof(ll) * 2);
/freebsd-14.2/lib/libc/amd64/string/
H A Dstrspn.S36 ARCHFUNCS(strspn)
37 ARCHFUNC(strspn, scalar)
39 ARCHFUNC(strspn, x86_64_v2)
40 ENDARCHFUNCS(strspn)
42 ARCHENTRY(strspn, scalar)
136 ARCHEND(strspn, scalar)
146 ARCHENTRY(strspn, x86_64_v2)
H A DMakefile.inc28 strspn.S \
/freebsd-14.2/contrib/ntp/sntp/libopts/
H A Dsave-flags.c218 str += strspn(str, white); in save_flags_str2mask()
229 str += 1 + strspn(str + 1, white); in save_flags_str2mask()
234 val_len = strspn(str, name_chars); in save_flags_str2mask()
/freebsd-14.2/lib/libutil/
H A Dtrimdomain.c102 w = strspn(disp, "0123456789"); in isDISP()
109 w = strspn(disp, "0123456789"); in isDISP()
/freebsd-14.2/sbin/ddb/
H A Dddb.c76 spn = strspn(buf, WHITESP); in ddb_readfile()
83 argv[1] = argv[0] + spn + strspn(argv[0] + spn, WHITESP); in ddb_readfile()
/freebsd-14.2/usr.bin/pathchk/
H A Dpathchk.c127 p += strspn(p, "/"); in check()
197 s = strspn(path, charset); in portable()
/freebsd-14.2/lib/libc/string/
H A DMakefile.inc20 strpbrk.c strrchr.c strsep.c strsignal.c strspn.c strstr.c strtok.c \
53 strspn.3 strstr.3 strtok.3 strverscmp.3 strxfrm.3 swab.3 \
87 MLINKS+=strspn.3 strcspn.3
H A Dstrspn.c37 strspn(const char *s, const char *charset) in strspn() function
/freebsd-14.2/usr.sbin/mailwrapper/
H A Dmailwrapper.c134 cp += strspn(cp, WS); in main()
144 cp += strspn(cp, WS); in main()
/freebsd-14.2/libexec/rtld-elf/rtld-libc/
H A DMakefile.inc44 strlcpy.c strlen.c strncmp.c strncpy.c strrchr.c strsep.c strspn.c \
51 CFLAGS.strspn.c+=-Wno-sign-compare
/freebsd-14.2/usr.bin/localedef/
H A Dcharmap.c328 ((int)strspn(s + si, digits) != (ls - si)) || in add_charmap_range()
329 ((int)strspn(e + si, digits) != (le - si)) || in add_charmap_range()
/freebsd-14.2/contrib/tcp_wrappers/
H A Dinetcf.c124 if (path[strspn(path, "-0123456789")] == 0) { in inet_cfg()
137 if (arg0[strspn(arg0, "0123456789")] == 0) { in inet_cfg()
/freebsd-14.2/usr.bin/patch/
H A Dmkpath.c57 slash += strspn(slash, "/"); in mkpath()
/freebsd-14.2/usr.sbin/pw/
H A Dpw_group.c309 if (arg1[strspn(arg1, "0123456789")] == '\0') in pw_group_show()
378 if (arg1[strspn(arg1, "0123456789")] == '\0') in pw_group_del()
515 if (arg1[strspn(arg1, "0123456789")] == '\0') in pw_group_add()
607 if (arg1[strspn(arg1, "0123456789")] == '\0') in pw_group_mod()
/freebsd-14.2/sys/libkern/
H A Dstrspn.c38 strspn(const char *s, const char *charset) in strspn() function
/freebsd-14.2/crypto/openssl/crypto/pem/
H A 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()
/freebsd-14.2/usr.bin/printf/
H A Dprintf.c227 l = strspn(fmt, digits); in printf_doformat()
254 l = strspn(fmt, digits); in printf_doformat()
298 l = strspn(fmt, digits); in printf_doformat()
/freebsd-14.2/contrib/llvm-project/libcxx/modules/std.compat/
H A Dcstring.inc31 using ::strspn;
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A Dcstring47 size_t strspn(const char* s1, const char* s2);
96 using ::strspn _LIBCPP_USING_IF_EXISTS;
/freebsd-14.2/sys/contrib/openzfs/module/lua/
H A Dlbaselib.c46 s += strspn(s, SPACECHARS); /* skip initial spaces */ in luaB_tonumber()
58 s += strspn(s, SPACECHARS); /* skip trailing spaces */ in luaB_tonumber()
/freebsd-14.2/usr.bin/mdo/
H A Dmdo.c49 if (strspn(username, "0123456789") == strlen(username)) { in main()
/freebsd-14.2/sys/contrib/openzfs/cmd/
H A Dzgenhostid.c89 if (strlen(in_s) != 8 || strspn(in_s, hex) != 8) { in main()
/freebsd-14.2/lib/libcrypt/
H A Dcrypt.c121 if ((len == 13 || len == 2) && strspn(salt, DES_SALT_ALPHABET) == len) { in crypt_r()

123456