Lines Matching refs:srcptr
352 char *srcptr, *dstptr, *retval; in strsep_quote() local
358 srcptr = dstptr = retval = *stringp; in strsep_quote()
360 while (*srcptr) { in strsep_quote()
375 if (*srcptr == '\\') { in strsep_quote()
376 srcptr++; in strsep_quote()
382 if (*srcptr) { in strsep_quote()
383 *dstptr++ = *srcptr++; in strsep_quote()
387 if (quot == 0 && (*srcptr == '\'' || *srcptr == '"')) { in strsep_quote()
388 quot = *srcptr++; in strsep_quote()
391 if (quot && *srcptr == quot) { in strsep_quote()
394 srcptr++; in strsep_quote()
397 if (!quot && strchr(delim, *srcptr)) in strsep_quote()
399 *dstptr++ = *srcptr++; in strsep_quote()
402 *stringp = (*srcptr == '\0') ? NULL : srcptr + 1; in strsep_quote()