Symbol: strcspn
bin/mkdir/mkdir.c
137
slash += strcspn(slash, "/");
bin/pax/options.c
1151
slash += strcspn(slash, "/");
bin/pax/tty_subs.c
121
str[strcspn(str, "\n")] = '\0';
games/atc/main.c
236
line[strcspn(line, "\n")] = '\0';
games/atc/main.c
268
line[strcspn(line, "\n")] = '\0';
games/atc/main.c
310
line[strcspn(line, "\n")] = '\0';
games/banner/banner.c
1164
message[strcspn(message, "\n")] = '\0';
games/battlestar/cypher.c
67
buffer[strcspn(buffer, "\n")] = '\0';
games/factor/factor.c
109
buf[strcspn(buf, "\n")] = '\0';
games/hack/hack.pager.c
149
bufr[strcspn(bufr, "\n")] = '\0';
games/hack/hack.pager.c
99
len = strcspn(buf, "\n");
games/hack/hack.rumors.c
110
line[strcspn(line, "\n")] = '\0';
games/monop/monop.c
103
buf[strcspn(buf, "\n")] = '\0';
games/primes/primes.c
159
buf[strcspn(buf, "\n")] = '\0';
include/string.h
78
size_t strcspn(const char *, const char *);
lib/libc/asr/asr.c
784
len = strcspn(line, "\n\0");
lib/libc/asr/asr.c
793
buf[strcspn(buf, ";#")] = '\0';
lib/libc/asr/asr.c
917
buf[strcspn(buf, "#")] = '\0';
lib/libc/gen/getcap.c
782
len = strcspn(record, "|:");
lib/libc/gen/getusershell.c
106
line[strcspn(line, "#\n")] = '\0';
lib/libc/hidden/string.h
53
PROTO_NORMAL(strcspn);
lib/libc/net/ethers.c
173
n = strcspn(p, " \t\n");
lib/libc/string/strcspn.c
59
DEF_STRONG(strcspn);
lib/libcrypto/ui/ui_lib.c
217
if (ok_chars[strcspn(ok_chars, cancel_chars)] != '\0') {
lib/libfuse/fuse_opt.c
79
sep = strcspn(templ, "=");
lib/libfuse/fuse_opt.c
82
sep = strcspn(templ, " ");
lib/libskey/skeysubr.c
168
buf += strcspn(buf, "\r\n");
libexec/comsat/comsat.c
227
cp[strcspn(cp, " \t\n")] = '\0';
libexec/fingerd/fingerd.c
148
(int)strcspn(line, "\r\n"), line);
libexec/ftpd/ftpd.c
1074
line[strcspn(line, "\n")] = '\0';
libexec/ftpd/ftpd.c
1982
cbuf[strcspn(cbuf, "\n")] = '\0';
libexec/ftpd/ftpd.c
2023
line[strcspn(line, "\n")] = '\0';
libexec/ftpd/ftpd.c
567
line[strcspn(line, "\n")] = '\0';
libexec/ftpd/ftpd.c
576
line[strcspn(line, "\n")] = '\0';
libexec/login_ldap/aldap.c
1020
len = strcspn(attr_val, "*)");
libexec/login_ldap/aldap.c
1040
len = strcspn(attr_val, "*)");
libexec/login_ldap/aldap.c
977
len = strcspn(cp, "()<>~=");
libexec/tradcpp/directive.c
115
pos = strcspn(line, ws);
libexec/tradcpp/directive.c
345
pos = strcspn(line, " \t\f\v(");
libexec/tradcpp/directive.c
349
pos = pos + strcspn(line+pos, "()");
libexec/tradcpp/directive.c
632
skip = strcspn(line, ws);
regress/lib/libc/regex/main.c
147
inbuf[strcspn(inbuf, "\n")] = '\0'; /* get rid of stupid \n */
regress/lib/libc/regex/split.c
174
buf[strcspn(buf, "\n")] = '\0'; /* stomp newline */
sbin/disklabel/disklabel.c
733
cp += strcspn(cp, " \t");
sbin/fdisk/misc.c
80
line[strcspn(line, "\n")] = '\0';
sbin/iked/ikev2.c
6062
idrepl[strcspn(idrepl, "/")] = '\0';
sbin/iked/parse.y
1243
len = strcspn($2, "0123456789");
sbin/isakmpd/conf.c
241
line[strcspn(line, " \t=")] = '\0';
sbin/mount_vnd/mount_vnd.c
142
saltfile[strcspn(saltfile, "\n")] = '\0';
sbin/restore/tape.c
335
buf[strcspn(buf, "\n")] = '\0';
sbin/restore/tape.c
353
buf[strcspn(buf, "\n")] = '\0';
sbin/savecore/savecore.c
319
vers[strcspn(vers, "\n")] = '\0';
sbin/savecore/savecore.c
320
core_vers[strcspn(core_vers, "\n")] = '\0';
sbin/sysctl/sysctl.c
298
lp[strcspn(lp, " \t\n#")] = '\0';
sbin/vnconfig/vnconfig.c
181
saltfile[strcspn(saltfile, "\n")] = '\0';
usr.bin/cut/cut.c
163
q = *p + strcspn(*p, "-");
usr.bin/cvs/add.c
515
tbuf[strcspn(tbuf, "\n")] = '\0';
usr.bin/cvs/checkout.c
559
tbuf[strcspn(tbuf, "\n")] = '\0';
usr.bin/cvs/client.c
1071
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/client.c
488
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/client.c
663
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/client.c
740
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/client.c
843
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/cvs.c
485
pos = strcspn(p, " \t");
usr.bin/cvs/diff_internals.c
1242
buf[strcspn(buf, "\n")] = '\0';
usr.bin/cvs/edit.c
281
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/edit.c
365
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/edit.c
398
timebuf[strcspn(timebuf, "\n")] = '\0';
usr.bin/cvs/edit.c
452
buf[strcspn(buf, "\n")] = '\0';
usr.bin/cvs/entries.c
71
buf[strcspn(buf, "\n")] = '\0';
usr.bin/cvs/entries.c
86
buf[strcspn(buf, "\n")] = '\0';
usr.bin/cvs/file.c
117
buf[strcspn(buf, "\n")] = '\0';
usr.bin/cvs/file.c
456
fpath[strcspn(fpath, "\n")] = '\0';
usr.bin/cvs/remove.c
195
tbuf[strcspn(tbuf, "\n")] = '\0';
usr.bin/cvs/root.c
201
line[strcspn(line, "\n")] = '\0';
usr.bin/cvs/trigger.c
269
if ((pos = strcspn(p, "$%")) != 0) {
usr.bin/cvs/trigger.c
279
pos = strcspn(++p, "}");
usr.bin/cvs/trigger.c
304
pos = strcspn(++p, "}");
usr.bin/cvs/util.c
489
dst[strcspn(dst, "\n")] = '\0';
usr.bin/cvs/util.c
594
repo[strcspn(repo, "\n")] = '\0';
usr.bin/diff/diffreg.c
1271
buf[strcspn(buf, "\n")] = '\0';
usr.bin/file/magic-load.c
691
cp = &s[strcspn(s, "+-&/%*")];
usr.bin/file/magic-test.c
812
s[strcspn(s, "\n")] = '\0';
usr.bin/file/magic-test.c
858
s[strcspn(s, "\n")] = '\0';
usr.bin/file/magic-test.c
904
s[strcspn(s, "\n")] = '\0';
usr.bin/file/magic-test.c
950
s[strcspn(s, "\n")] = '\0';
usr.bin/ftp/cmds.c
1045
acctname[strcspn(acctname, "\n")] = '\0';
usr.bin/ftp/cmds.c
1356
cmdpos = strcspn(line, " \t");
usr.bin/ftp/cookie.c
80
line[strcspn(line, "\r\n")] = '\0';
usr.bin/ftp/fetch.c
1168
header[strcspn(header, "; \t\r\n")] = '\0';
usr.bin/ftp/fetch.c
912
if (cp[strcspn(cp, ":/")] != ':') {
usr.bin/ftp/main.c
551
if (strcspn(optarg, "\r\n") != strlen(optarg))
usr.bin/ftp/util.c
282
tmp[strcspn(tmp, "\n")] = '\0';
usr.bin/ftp/util.c
449
buf[strcspn(buf, "\n")] = '\0';
usr.bin/getcap/getcap.c
132
prefixlen = useprefix ? strcspn(buf, "|:") : 0;
usr.bin/ldap/aldap.c
1020
len = strcspn(attr_val, "*)");
usr.bin/ldap/aldap.c
1040
len = strcspn(attr_val, "*)");
usr.bin/ldap/aldap.c
977
len = strcspn(cp, "()<>~=");
usr.bin/ldap/ldapclient.c
255
passbuf[strcspn(passbuf, "\n")] = '\0';
usr.bin/make/parse.c
1594
pos = strcspn(stripped, ":!");
usr.bin/make/parse.c
598
p += strcspn(p, "!:");
usr.bin/mandoc/cgi.c
219
keysz = strcspn(qs, "=;&");
usr.bin/mandoc/cgi.c
227
valsz = strcspn(++qs, ";&");
usr.bin/mandoc/cgi.c
687
sec += strcspn(sec, "123456789");
usr.bin/mandoc/eqn.c
421
ep->end += strcspn(ep->end, " ^~\"{}\t");
usr.bin/mandoc/html.c
490
for (sz = strcspn(p, rejs); sz-- && p < pend; p++)
usr.bin/mandoc/main.c
1282
wordlen = strcspn(pager, " ");
usr.bin/mandoc/main.c
522
sec += strcspn(sec, "123456789");
usr.bin/mandoc/mandocdb.c
1484
sz = strcspn(start, " ,");
usr.bin/mandoc/mandocdb.c
1671
sz = strcspn(cp, "()");
usr.bin/mandoc/mansearch.c
416
sz1 = strcspn(mp1->names, "(");
usr.bin/mandoc/mansearch.c
417
sz2 = strcspn(mp2->names, "(");
usr.bin/mandoc/mdoc_man.c
312
rsz = strcspn(cp, "\\");
usr.bin/mandoc/mdoc_validate.c
1143
len = strcspn(nt->string, " \t\\");
usr.bin/mandoc/mdoc_validate.c
1334
pos = strcspn(cp, "()");
usr.bin/mandoc/roff.c
1762
sz = strcspn(p, "-\\");
usr.bin/mandoc/roff.c
1806
strcspn(buf->buf, " ") < 80)
usr.bin/mandoc/term.c
1015
rsz = strcspn(cp, rej);
usr.bin/mandoc/term.c
597
ssz = strcspn(word, "\\ ");
usr.bin/mandoc/term.c
599
ssz = strcspn(word, "\\");
usr.bin/mandoc/term_tag.c
160
len = strcspn(cp, " \t\\");
usr.bin/mg/dir.c
136
slash += strcspn(slash, "/");
usr.bin/nc/socks.c
338
if (strcspn(host, "\r\n\t []") != strlen(host))
usr.bin/patch/mkpath.c
56
slash += strcspn(slash, "/");
usr.bin/pkgconf/libpkgconf/pkg.c
178
len = strcspn(p, " \t");
usr.bin/radioctl/radioctl.c
418
optlen = strcspn(s, "=");
usr.bin/rcs/diff.c
1169
buf[strcspn(buf, "\n")] = '\0';
usr.bin/rcs/rcs.c
1668
j = strcspn(rdp->rd_log + i, "\n");
usr.bin/rdist/message.c
508
msgbuf[strcspn(msgbuf, "\n")] = CNULL;
usr.bin/rsync/main.c
241
module_offset += strcspn(ccp + 1, "/") + 1;
usr.bin/rsync/main.c
49
pos = strcspn(v, ":/");
usr.bin/rsync/main.c
65
pos = strcspn(v, ":/");
usr.bin/rsync/mkpath.c
55
slash += strcspn(slash, "/");
usr.bin/rsync/rules.c
217
len = strcspn(line, " _");
usr.bin/ssh/auth2-chall.c
124
strcspn(kbdintctxt->devices, ",") : 0;
usr.bin/ssh/authfile.c
226
cp[strcspn(cp, "\r\n")] = '\0';
usr.bin/ssh/hostfile.c
801
line[strcspn(line, "\n")] = '\0';
usr.bin/ssh/hostfile.c
910
l = strcspn(lineinfo.rawkey, " \t");
usr.bin/ssh/readconf.c
657
shorthost[strcspn(thishost, ".")] = '\0';
usr.bin/ssh/readpass.c
103
buf[strcspn(buf, "\r\n")] = '\0';
usr.bin/ssh/session.c
767
cp[strcspn(cp, "\n")] = '\0';
usr.bin/ssh/sftp.c
2331
cmd[strcspn(cmd, "\n")] = '\0';
usr.bin/ssh/ssh-add.c
135
line[strcspn(line, "\n")] = '\0';
usr.bin/ssh/ssh-keygen.c
1119
int has_wild = l->hosts && strcspn(l->hosts, "*?!") != strlen(l->hosts);
usr.bin/ssh/ssh-keygen.c
1515
new_comment[strcspn(new_comment, "\n")] = '\0';
usr.bin/ssh/ssh-keygen.c
276
buf[strcspn(buf, "\n")] = '\0';
usr.bin/ssh/ssh-keygen.c
912
cp[strcspn(cp, "\r\n")] = '\0';
usr.bin/ssh/ssh-keyscan.c
158
e = s + strcspn(s, delim);
usr.bin/ssh/ssh.c
1401
thishost[strcspn(thishost, ".")] = '\0';
usr.bin/ssh/sshconnect.c
563
p[strcspn(p, " \t\n")] = '\0'; /* remove trailing whitespace */
usr.bin/ssh/sshconnect.c
956
if (strcspn(hostname, "@?*#[]|'\'\"\\") != strlen(hostname)) {
usr.bin/ssh/sshkey.c
1272
space = strcspn(cp, " \t");
usr.bin/ssh/sshkey.c
1289
space = strcspn(cp, " \t");
usr.bin/ssh/sshkey.c
992
ret[strcspn(ret, "=")] = '\0';
usr.bin/ssh/sshlogin.c
131
time_string[strcspn(time_string, "\n")] = '\0';
usr.bin/tmux/arguments.c
605
if (s[strcspn(s, dquoted)] != '\0')
usr.bin/tmux/arguments.c
607
else if (s[strcspn(s, squoted)] != '\0')
usr.bin/tmux/arguments.c
873
n = strcspn(state->cmd, " ,");
usr.bin/tmux/attributes.c
84
if (*str == '\0' || strcspn(str, delimiters) == 0)
usr.bin/tmux/attributes.c
94
end = strcspn(str, delimiters);
usr.bin/tmux/cmd-attach-session.c
79
if (tflag != NULL && tflag[strcspn(tflag, ":.")] != '\0') {
usr.bin/tmux/cmd-switch-client.c
66
(tflag[strcspn(tflag, ":.%")] != '\0' || strcmp(tflag, "=") == 0)) {
usr.bin/tmux/environ.c
163
name[strcspn(name, "=")] = '\0';
usr.bin/tmux/format.c
4085
s[strcspn(s, "\n")] = '\0';
usr.bin/tmux/input-keys.c
382
data[strcspn(data, "_")] = '0' + j;
usr.bin/tmux/names.c
149
name[strcspn(name, "\"")] = '\0';
usr.bin/tmux/style.c
80
end = strcspn(in, delimiters);
usr.bin/tmux/tmux.c
532
path[strcspn(path, ",")] = '\0';
usr.bin/tmux/tty-keys.c
511
copy[strcspn(copy, "_")] = '0' + j;
usr.bin/tmux/tty-term.c
547
namelen = strcspn(caps[i], "=");
usr.bin/tmux/window-copy.c
4110
if (regex && str[strcspn(str, "^$*+()?[].\\")] == '\0')
usr.bin/top/commands.c
72
span = strcspn(str, spaces);
usr.bin/top/commands.c
79
while (strcspn(str, spaces) == 0)
usr.bin/units/units.c
128
len = strcspn(lineptr, " \n\t");
usr.bin/units/units.c
154
len = strcspn(lineptr, "\n\t");
usr.bin/units/units.c
190
len = strcspn(lineptr, "\n\t");
usr.bin/vacation/vacation.c
225
from[strcspn(from, "\n")] = '\0';
usr.bin/vacation/vacation.c
251
p[strcspn(p, ">")] = '\0';
usr.bin/vacation/vacation.c
258
from[strcspn(from, "\n")] = '\0';
usr.bin/vacation/vacation.c
288
subj[strcspn(subj, "\n")] = '\0';
usr.bin/whois/whois.c
243
if ((len = strcspn(p, " \t\n\r"))) {
usr.sbin/bgplgd/qs.c
280
len = strcspn(param, "=");
usr.sbin/bgplgd/qs.c
306
len = strcspn(param, "&");
usr.sbin/config/misc.c
45
lbuf[strcspn(lbuf, "\n")] = '\0';
usr.sbin/config/misc.c
52
cp = &buf[strcspn(buf, " \t")];
usr.sbin/hostctl/hostctl.c
62
dst[strcspn(dst, "\n")] = '\0';
usr.sbin/httpd/server_fcgi.c
838
value[strcspn(value, " \t")] = '\0';
usr.sbin/inetd/inetd.c
1343
line[strcspn(line, "\n")] = '\0';
usr.sbin/ldapd/validate.c
122
p = na + strcspn(na, "=");
usr.sbin/ldapd/validate.c
129
p = dv + strcspn(dv, "+,");
usr.sbin/ntpd/constraint.c
1024
line[strcspn(line, "\r\n")] = '\0';
usr.sbin/ntpd/parse.y
386
path = hname + strcspn(hname, "/\\");
usr.sbin/pppd/chat/chat.c
350
buf[strcspn(buf, "\n")] = '\0';
usr.sbin/radiusd/radiusd_bsdauth.c
201
user[strcspn(user, ":")] = '\0';
usr.sbin/relayd/relayd.c
1045
pname[strcspn(pname, ":")] = '\0';
usr.sbin/relayd/relayd.c
1608
(strcspn(url, ":/") != (size_t)(p - url)))
usr.sbin/relayd/relayd.c
1629
host[strcspn(host, "/")] = '\0';
usr.sbin/relayd/relayd.c
871
len = strcspn(ptr, " \t");
usr.sbin/relayd/relayd.c
949
buf[strcspn(buf, "\r\n\t ")] = '\0';
usr.sbin/rpki-client/http.c
1408
if (cp[strcspn(cp, ":/")] != ':') {
usr.sbin/rpki-client/http.c
1527
header[strcspn(header, "; \t")] = '\0';
usr.sbin/rpki-client/http.c
420
if ((fullhost = strndup(host, strcspn(host, "/"))) == NULL)
usr.sbin/rpki-client/main.c
528
if (strncasecmp(host, le->fqdn, strcspn(host, "/")) == 0) {
usr.sbin/rpki-client/main.c
535
if (strncasecmp(host, le->fqdn, strcspn(host, "/")) == 0) {
usr.sbin/rpki-client/main.c
906
linelen = strcspn(line, " #\r\n\t");
usr.sbin/rpki-client/mkdir.c
59
slash += strcspn(slash, "/");
usr.sbin/smtpd/config.c
128
hostname[strcspn(hostname, ".")] = '\0';
usr.sbin/smtpd/enqueue.c
540
len = strcspn(pw->pw_gecos, ",");
usr.sbin/smtpd/envelope.c
77
len = strcspn(buf, "\n");
usr.sbin/smtpd/mail.lmtp.c
254
line[strcspn(line, "\n")] = '\0';
usr.sbin/smtpd/mail.lmtp.c
255
line[strcspn(line, "\r")] = '\0';
usr.sbin/smtpd/mail.lmtp.c
324
line[strcspn(line, "\n")] = '\0';
usr.sbin/smtpd/mail.maildir.c
187
line[strcspn(line, "\n")] = '\0';
usr.sbin/smtpd/mail.mboxfile.c
80
line[strcspn(line, "\n")] = '\0';
usr.sbin/smtpd/smtp_session.c
1946
if (user[strcspn(user, "\r\n")] != '\0')
usr.sbin/smtpd/smtp_session.c
1956
if (pass[strcspn(pass, "\r\n")] != '\0')
usr.sbin/smtpd/smtp_session.c
2000
if (s->username[strcspn(s->username, "\r\n")] != '\0')
usr.sbin/smtpd/smtp_session.c
2013
if (buf[strcspn(buf, "\r\n")] != '\0')
usr.sbin/smtpd/table_proc.c
153
priv->line[strcspn(priv->line, "\n")] = '\0';
usr.sbin/smtpd/table_proc.c
231
if (k[strcspn(k, "\r\n")] != '\0')
usr.sbin/smtpd/table_proc.c
92
priv->line[strcspn(priv->line, "\n")] = '\0';
usr.sbin/smtpd/util.c
895
valp = keyp + strcspn(keyp, " \t:");
usr.sbin/snmpd/parse.y
1217
(span = strcspn(pos, " \t")) != 0) {
usr.sbin/user/user.c
1365
buf[strcspn(buf, "\n")] = '\0';
usr.sbin/vmd/priv.c
269
span = strcspn(ifname, "0123456789");
usr.sbin/ypldap/aldap.c
1013
len = strcspn(cp, "()<>~=");
usr.sbin/ypldap/aldap.c
1056
len = strcspn(attr_val, "*)");
usr.sbin/ypldap/aldap.c
1076
len = strcspn(attr_val, "*)");
usr.sbin/ypldap/entries.c
109
endp[strcspn(endp, ":")] = '\0';
usr.sbin/ypldap/entries.c
74
endp[strcspn(endp, ":")] = '\0';
usr.sbin/ypldap/yp.c
712
line[strcspn(line, ":")] = '\0';
usr.sbin/ypldap/yp.c
740
line[strcspn(line, ":")] = '\0';
usr.sbin/ypldap/ypldap.c
194
bp += strcspn(bp, ":") + 1;
usr.sbin/ypldap/ypldap.c
197
bp += strcspn(bp, ":") + 1;
usr.sbin/ypldap/ypldap.c
200
bp[strcspn(bp, ":")] = '\0';
usr.sbin/ypldap/ypldap.c
231
bp += strcspn(bp, ":") + 1;
usr.sbin/ypldap/ypldap.c
234
bp += strcspn(bp, ":") + 1;
usr.sbin/ypldap/ypldap.c
405
ue->ue_line[strcspn(ue->ue_line, ":")] = '\0';
usr.sbin/ypldap/ypldap.c
431
ge->ge_line[strcspn(ge->ge_line, ":")] = '\0';