Lines Matching defs:str
26 static char str[256];
27 char *s = str;
28 if (!fgets(str, sizeof(str), configfile))
33 str[0] = 0; // So we empty the string in order not to confuse the parser.
34 return str;
39 s = str;
47 char *str;
50 str = config_read_line(configfile);
51 while (!strchr(str, '}')) {
52 if (str[0] != '\n') {
53 if ((strstr(str, "directory")) && (strchr(str, '{')) && (directories)) {
60 tmp = strchr(str, '"') + 1;
70 opt->name = (char *) malloc(strlen(str));
71 // opt->value = (char *) malloc(strlen(str));
72 opt->value = (char *) malloc( strlen(str) + 256);
73 sscanf(str, "%[^=]=\"%[^\n\"]", opt->name, opt->value);
76 str = config_read_line(configfile);
143 char *str;
160 while ((str = config_read_line(configfile))) {
161 if (strchr(str, '{')) {
162 replace(str, " {", "{");
163 replace(str, "{ ", "{");
164 replace(str, " }", "}");
165 replace(str, "} ", "}");
166 if (!strcasecmp(str, "global{\n")) {
168 } else if (strstr(str, "user ") == str) {
174 usr->name = strdup(str + 5);
177 } else if (strstr(str, "group ") == str) {
183 cutto(str, 6);
184 *strchr(str, '{') = 0;
187 grp->temp_members = strdup(str);