Lines Matching defs:str
79 #define lastch(str) str[strlen(str)-1]
131 skip_whitespace(char *str, int n)
133 while (whitespace(str[n]) && str[n] != '\0')
139 skip_keyword(char *str, int n)
141 while (isalnum(UCH(str[n])) && str[n] != '\0')
184 attr_to_str(char *str, int fg, int bg, int hl)
188 strcpy(str, "(");
191 strcat(str, color_names[i].name);
192 strcat(str, ",");
196 strcat(str, color_names[i].name);
199 strcat(str, hl ? ",ON)" : ",OFF)");
201 return str;
212 str_to_attr(char *str, int *fg, int *bg, int *hl)
219 if (str[0] != '(' || lastch(str) != ')') {
220 if ((i = find_color(str)) >= 0) {
230 have = strlen(str);
236 memcpy(tempstr, str + 1, have);
481 char str[MAX_LEN + 1];
513 sprintf(str, "%s%s", tempptr, DIALOGRC);
515 sprintf(str, "%s/%s", tempptr, DIALOGRC);
516 rc_file = fopen(tempptr = str, "rt");
522 strcpy(str, GLOBALRC);
523 if ((rc_file = fopen(tempptr = str, "rt")) == NULL)
529 while ((result == 0) && (fgets(str, MAX_LEN, rc_file) != NULL)) {
530 DLG_TRACE(("rc:%s", str));
531 if (*str == '\0' || lastch(str) != '\n') {
539 lastch(str) = '\0';
540 if (begins_with(str, "bindkey", ¶ms)) {
547 parse = parse_line(str, &var, &value); /* parse current line */