/src/lib/libc/string/ |
strtok.c | 45 strtok(char *s, const char *delim) 49 return strtok_r(s, delim, &lasts);
|
strtok_r.c | 51 strtok_r(char *s, const char *delim, char **lasts) 58 _DIAGASSERT(delim != NULL); 65 * Skip (span) leading delimiters (s += strspn(s, delim), sort of). 69 for (spanp = delim; (sc = *spanp++) != 0;) { 81 * Scan token (scan for delimiters: s += strcspn(s, delim), sort of). 82 * Note that delim must have one NUL; we stop if we see that, too. 86 spanp = delim;
|
wcstok.c | 53 wcstok(wchar_t * __restrict s, const wchar_t * __restrict delim, 61 _DIAGASSERT(delim != NULL); 68 * Skip (span) leading delimiters (s += wcsspn(s, delim), sort of). 72 for (spanp = delim; (sc = *spanp++) != L'\0';) { 84 * Scan token (scan for delimiters: s += wcscspn(s, delim), sort of). 85 * Note that delim must have one NUL; we stop if we see that, too. 89 spanp = delim;
|
stresep.c | 52 * strings separated by characters from delim. If esc is not NUL, then 57 * delim need not remain constant from call to call. 64 stresep(char **stringp, const char *delim, int esc) 73 _DIAGASSERT(delim != NULL); 86 spanp = delim;
|
/src/common/lib/libc/string/ |
strsep.c | 59 * strings separated by characters from delim. 62 * delim need not remain constant from call to call. 69 strsep(char **stringp, const char *delim) 77 _DIAGASSERT(delim != NULL); 83 spanp = delim;
|
/src/sys/arch/hpc/stand/libsa/ |
strtok.cpp | 41 strtok(char *s, const char *delim) 52 * Skip (span) leading delimiters (s += strspn(s, delim), sort of). 56 for (spanp = delim; (sc = *spanp++) != 0;) { 68 * Scan token (scan for delimiters: s += strcspn(s, delim), sort of). 69 * Note that delim must have one NUL; we stop if we see that, too. 73 spanp = delim;
|
/src/usr.bin/indent/ |
pr_comment.c | 91 bool delim = false; // only relevant if may_wrap local in function:analyze_comment 115 delim = true; 117 delim = true; 147 *p_delim = delim; 152 copy_comment_start(bool may_wrap, bool *delim, int line_length) 161 if (*delim && fits_in_one_line(line_length)) 162 *delim = false; 163 if (*delim) { 248 copy_comment_wrap_finish(int line_length, bool delim) 250 if (delim) { 343 bool may_wrap, delim; local in function:process_comment [all...] |
/src/usr.bin/m4/ |
trace.c | 176 char delim[3]; local in function:trace 179 delim[0] = LPAREN; 180 delim[1] = EOS; 182 fprintf(traceout, "%s%s%s%s", delim, 186 delim[0] = COMMA; 187 delim[1] = ' '; 188 delim[2] = EOS;
|
tokenizer.l | 42 delim [ \t\n] 43 ws {delim}+
|
/src/usr.bin/paste/ |
paste.c | 61 static char *delim = dflt_delim; variable in typeref:typename:char * 73 delim = strdup(optarg); 74 delimcnt = tr(delim); 114 /* Start with the NUL at the end of 'delim' ... */ 115 dp = delim + delimcnt; 134 if (dp >= delim + delimcnt) 135 dp = delim; 151 if (dp >= delim + delimcnt) 152 dp = delim; 176 for (cnt = 0, dp = delim;;) { [all...] |
/src/usr.bin/pr/ |
egetopt.c | 77 static int delim; /* which option delimiter */ local in function:egetopt 96 delim = (int)*place; 138 return (delim); 153 if (delim == (int)'+') {
|
/src/sys/dev/ir/ |
irframe.c | 114 const char *delim; local in function:irframe_attach 134 delim = ":"; 136 printf("%s SIR", delim); 137 delim = ","; 140 printf("%s MIR", delim); 141 delim = ","; 144 printf("%s FIR", delim); 145 delim = ","; 148 printf("%s VFIR", delim); 149 delim = "," [all...] |
/src/games/warp/ |
util.c | 115 cpytill(char *to, const char *from, int delim) 118 if (*from == '\\' && from[1] == delim) 120 else if (*from == delim)
|
/src/usr.bin/radioctl/ |
radioctl.c | 504 const char *delim; local in function:print_vars 527 delim = ""; 529 printf("%s stereo detect", delim), delim=","; 531 printf("%s signal detect", delim), delim=","; 533 printf("%s manageable mono/stereo", delim), delim=","; 535 printf("%s hardware search", delim), delim="," [all...] |
/src/tests/usr.bin/indent/ |
edge_cases.c | 163 function join(delim, values) 171 result += delim; 174 return result.substr(delim.length);
|
/src/sys/external/bsd/drm2/dist/drm/ |
drm_modes.c | 1592 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret) 1598 * delim must point to the '=', otherwise it is a syntax error and 1599 * if delim points to the terminating zero, then delim + 1 wil point 1602 if (*delim != '=') 1605 value = delim + 1; 1615 static int drm_mode_parse_panel_orientation(const char *delim, 1620 if (*delim != '=') 1623 value = delim + 1; 1624 delim = strchr(value, ',') 1648 const char *delim, *option, *sep; local in function:drm_mode_parse_cmdline_options [all...] |
/src/sbin/routed/ |
parms.c | 497 char *val0, *p, delim; local in function:get_passwd 517 if (0 > parse_quote(&val, "| ,\n\r", &delim, 521 if (delim != '|') { 527 if (0 > parse_quote(&val, "| ,\n\r", &delim, buf,sizeof(buf)) 543 if (delim == '|') { 545 if (0 != (p = parse_ts(&k.start, &val, val0, &delim, 548 if (delim != '|') 551 if (0 != (p = parse_ts(&k.end, &val, val0, &delim, 561 if (delim != '\0') 594 char delim, *val0 = 0, *tgt, *val, *p local in function:parse_parms [all...] |
/src/usr.bin/nl/ |
nl.c | 107 static char delim[2] = { '\\', ':' }; variable in typeref:typename:char[2] 159 delim[0] = optarg[0]; 161 delim[1] = optarg[1]; 165 "invalid delim argument -- %s", 292 if (buffer[2 * idx + 0] == delim[0] && 293 buffer[2 * idx + 1] == delim[1]) { 402 (void)fprintf(stderr, "Usage: %s [-p] [-b type] [-d delim] [-f type] "
|
/src/usr.sbin/wlanctl/ |
wlanctl.c | 100 const char *delim; local in function:print_flags 101 delim = "<"; 105 printf("%s%s", delim, flagnames[i].fn_name); 106 delim = ","; 110 printf("%s\n", (delim[0] == '<') ? "" : ">");
|
/src/lib/libterminfo/ |
compile.c | 71 char *obuf, type, flag, *buf, *delim, *name, *nbuf; local in function:_ti_promote 92 delim = strchr(buf, '|'); 93 if (delim != NULL) 94 *delim++ = '\0'; 106 buf = delim; 263 const char *delim; local in function:_ti_getname 280 delim = orig; 281 while (*delim != '\0' && *delim != TERMINFO_VDELIM) 282 delim++ [all...] |
/src/libexec/ld.elf_so/ |
paths.c | 93 getstr(const char **p, const char *ep, const char *delim) 102 for (r = delim; *r != 0; r++) 112 * Like getstr() above, but delim[] is complemented. 115 getcstr(const char **p, const char *ep, const char *delim) 124 for (r = delim; *r != *q; r++) 134 getword(const char **p, const char *ep, const char *delim) 137 (void)getcstr(p, ep, delim); 140 * Now, we're looking non-delim, or end of string. 143 return (getstr(p, ep, delim));
|
/src/lib/libc/time/ |
strptime.c | 116 #define delim(p) ((p) == '\0' || isspace((unsigned char)(p))) macro 125 for (p = buf, rp = *bp; !delim(*rp) && p < &buf[sizeof(buf) - 1]; rp++) 493 else if (!delim(*bp) && *bp++ != 'C') 497 if (!delim(*bp)) 518 if (delim(bp[1]) && 539 if (delim(bp[1]) && *bp == 'J') { 554 if (delim(bp[0]) || delim(bp[1]) || 555 delim(bp[2]) || !delim(bp[3]) [all...] |
/src/bin/csh/ |
lex.c | 589 int delim = getC(0); local in function:getdol 590 *np++ = (Char)delim; 592 if (!delim || letter(delim) 593 || Isdigit(delim) || any(" \t\n", delim)) { 599 if(c == delim) delimcnt--; 741 int c, delim, sc; local in function:getsub 784 delim = getC(0); 785 if (letter(delim) || Isdigit(delim) || any(" \t\n", delim)) [all...] |
/src/bin/ksh/ |
tree.c | 204 evalstr(iop->delim, 0)); 264 /* name/delim are 0 when printing syntax errors */ 266 if (iop->delim) 267 fptreef(shf, indent, "%S ", iop->delim); 685 if (p->delim != (char *) 0) 686 q->delim = wdcopy(p->delim, ap); 744 if (p->delim != NULL) 745 afree((void*)p->delim, ap);
|
tree.h | 82 char *delim; /* delimiter for <<,<<- */ member in struct:ioword
|