Home | History | Annotate | Download | only in libedit

Lines Matching refs:txt

59  * if ``user'' isn't valid user name or ``txt'' doesn't start
60 * w/ '~', returns pointer to strdup()ed copy of ``txt''
65 fn_tilde_expand(const char *txt)
76 if (txt[0] != '~')
77 return strdup(txt);
79 pos = strchr(txt + 1, '/');
81 temp = strdup(txt + 1);
86 len = (size_t)(pos - txt + 1);
90 (void)strlcpy(temp, txt + 1, len - 1);
114 return strdup(txt);
116 /* update pointer txt to point at string immedially following */
118 txt += len;
120 len = strlen(pass->pw_dir) + 1 + strlen(txt) + 1;
124 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt);