Lines Matching defs:src

51    before copying bytes from src to send - 1. */
54 cp(char *dst, char *dend, char first, char *src, char *send)
56 char *p = src, *q = dst;
78 wcp(WCHAR *dst, WCHAR *dend, WCHAR first, WCHAR *src, WCHAR *send)
80 WCHAR *p = src, *q = dst;
235 char *src, *dst, *dend;
263 src = path; /* Start scanning here */
268 if (isalpha(src[0]) && (src[1] == ':') && (src[2] == '\\')) {
270 *src = toupper(*src); /* Canonicalize drive letter */
271 if (!(dst = cp(dst, dend, '\0', src, src + 2))) {
274 src += 2;
275 } else if ((src[0] == '\\') && (src[1] == '\\')) {
278 p = nextsep(src + 2); /* Skip past host name */
286 if (!(dst = cp(dst, dend, '\0', src, p))) {
289 src = p;
308 prefix ("\\\\host\\share") to the result buffer, and src points to the
313 while (*src) {
314 char *p = nextsep(src + 1); /* Find next separator */
316 assert(*src == '\\'); /* Invariant */
328 src = p;
332 if (!(dst = cp(dst, dend, '\0', src, src + strlen(src)))) {
365 char *src, *dst, *dend;
367 src = pathWithCanonicalPrefix;
387 if (!(dst = cp(dst, dend, '\0', src, src + strlen(src)))) {
412 WCHAR *src, *dst, *dend, c;
433 src = path; /* Start scanning here */
438 c = src[0];
440 && (src[1] == L':') && (src[2] == L'\\')) {
442 *src = towupper(*src); /* Canonicalize drive letter */
443 if (!(dst = wcp(dst, dend, L'\0', src, src + 2))) {
447 src += 2;
448 } else if ((src[0] == L'\\') && (src[1] == L'\\')) {
451 p = wnextsep(src + 2); /* Skip past host name */
459 if (!(dst = wcp(dst, dend, L'\0', src, p)))
461 src = p;
468 prefix ("\\\\host\\share") to the result buffer, and src points to the
473 while (*src) {
474 WCHAR *p = wnextsep(src + 1); /* Find next separator */
479 assert(*src == L'\\'); /* Invariant */
497 src = p;
501 if (!(dst = wcp(dst, dend, L'\0', src, src + wcslen(src)))){
532 WCHAR *src, *dst, *dend;
536 src = pathWithCanonicalPrefix;
562 if (!(dst = wcp(dst, dend, L'\0', src, src + wcslen(src)))) {