Lines Matching refs:srcPtr
368 register char* srcPtr;
379 srcPtr = *srcPtrPtr;
381 ASSERT_RTN (srcPtr != NULL, "expandTilde: no srcPtr", NULL);
383 if (srcPtr == NULL) return (NULL);
385 if ((*srcPtr == '~') && (destBuffSize > 0))
388 ++srcPtr;
389 if ((*srcPtr == '/') || (*srcPtr == '\0'))
396 /* Buggy: we assume we have a username at srcPtr. */
405 while ((*srcPtr != '/') && (*srcPtr != '\0') && (index-- > 0))
407 *tmpDst++ = *srcPtr++;
417 *srcPtrPtr = srcPtr;
440 register char* srcPtr;
451 srcPtr = *srcPtrPtr;
453 ASSERT_RTN (srcPtr != NULL, "expandEnv: no srcPtr", NULL);
455 if (srcPtr == NULL) return (NULL);
457 if ((*srcPtr == '$') && (destBuffSize > 0))
468 ++srcPtr;
469 if ((*srcPtr == '(') || (*srcPtr == '{')) ++srcPtr;
473 (*srcPtr != ')') && (*srcPtr != '}') && (*srcPtr != '\0')
477 *tmpDst++ = *srcPtr++;
480 if ((*srcPtr == ')') || (*srcPtr == '}')) ++srcPtr;
498 *srcPtrPtr = srcPtr;
1005 char* srcPtr = (char*)path;
1020 tmpPtr = expandTilde (dstPtr, &srcPtr, pathMax);
1028 while ((*srcPtr != '\0') && (index <= pathMax))
1030 while ((*srcPtr != '$') && (*srcPtr != '\0') && (index++ <= pathMax))
1032 *tmpPtr++ = *srcPtr++;
1034 if (*srcPtr == '$')
1036 tmpPtr = expandEnv (tmpPtr, &srcPtr, pathMax-index);
1042 if (*srcPtr != '\0')