Lines Matching refs:source
43 alloc_pw(struct passwd *target, struct passwd *source)
45 *target = *source;
47 target->pw_dir = x_strdup(source->pw_dir);
48 target->pw_name = x_strdup(source->pw_name);
49 target->pw_shell = x_strdup(source->pw_shell);
53 free_pw(struct passwd *source)
55 free(source->pw_dir);
56 free(source->pw_name);
57 free(source->pw_shell);
61 x_appendargv(char **target, char **source)
63 if (target && source) {
65 while ((*target++ = *source++) != NULL) ;
96 x_decode_hex(const char *source, const char **next)
103 for (j = k = 0; isxdigit(CharOf(source[j])); ++j) {
105 result[k++] = (char) ((CharOf(x_hex2int(source[j - 1])) << 4)
106 | CharOf(x_hex2int(source[j])));
109 *next = (source + j);
130 x_encode_hex(const char *source)
132 size_t need = (strlen(source) * 2) + 1;
138 for (j = k = 0; source[j] != '\0'; ++j) {
139 sprintf(result + k, "%02X", CharOf(source[j]));
471 x_strtrim(const char *source)
475 if (IsEmpty(source)) {
478 char *t = x_strdup(source);
503 x_strrtrim(const char *source)
507 if (IsEmpty(source)) {
510 char *t = x_strdup(source);