Lines Matching refs:txt
66 * if ``user'' isn't valid user name or ``txt'' doesn't start
67 * w/ '~', returns pointer to strdup()ed copy of ``txt''
72 fn_tilde_expand(const char *txt)
82 if (txt[0] != '~')
83 return strdup(txt);
85 temp = strchr(txt + 1, '/');
87 temp = strdup(txt + 1);
92 len = (size_t)(temp - txt + 1);
96 (void)strncpy(temp, txt + 1, len - 2);
121 return strdup(txt);
123 /* update pointer txt to point at string immedially following */
125 txt += len;
127 len = strlen(pass->pw_dir) + 1 + strlen(txt) + 1;
131 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt);