Lines Matching refs:srcptr
342 char *srcptr, *dstptr, *retval;
348 srcptr = dstptr = retval = *stringp;
350 while (*srcptr) {
365 if (*srcptr == '\\') {
366 srcptr++;
372 if (*srcptr) {
373 *dstptr++ = *srcptr++;
377 if (quot == 0 && (*srcptr == '\'' || *srcptr == '"')) {
378 quot = *srcptr++;
381 if (quot && *srcptr == quot) {
384 srcptr++;
387 if (!quot && strchr(delim, *srcptr))
389 *dstptr++ = *srcptr++;
392 *stringp = (*srcptr == '\0') ? NULL : srcptr + 1;