Lines Matching refs:srcptr
357 char *srcptr, *dstptr, *retval; in strsep_quote() local
363 srcptr = dstptr = retval = *stringp; in strsep_quote()
365 while (*srcptr) { in strsep_quote()
380 if (*srcptr == '\\') { in strsep_quote()
381 srcptr++; in strsep_quote()
387 if (*srcptr) { in strsep_quote()
388 *dstptr++ = *srcptr++; in strsep_quote()
392 if (quot == 0 && (*srcptr == '\'' || *srcptr == '"')) { in strsep_quote()
393 quot = *srcptr++; in strsep_quote()
396 if (quot && *srcptr == quot) { in strsep_quote()
399 srcptr++; in strsep_quote()
402 if (!quot && strchr(delim, *srcptr)) in strsep_quote()
404 *dstptr++ = *srcptr++; in strsep_quote()
407 *stringp = (*srcptr == '\0') ? NULL : srcptr + 1; in strsep_quote()