Lines Matching refs:line
562 char line[ASCIILINESZ+1]; in iniparser_line() local
565 strcpy(line, strstrip(input_line)); in iniparser_line()
566 len = (int)strlen(line); in iniparser_line()
572 } else if (line[0]=='#' || line[0]==';') { in iniparser_line()
575 } else if (line[0]=='[' && line[len-1]==']') { in iniparser_line()
577 sscanf(line, "[%[^]]", section); in iniparser_line()
581 } else if (sscanf (line, "%[^=] = \"%[^\"]\"", key, value) == 2 in iniparser_line()
582 || sscanf (line, "%[^=] = '%[^\']'", key, value) == 2 in iniparser_line()
583 || sscanf (line, "%[^=] = %[^;#]", key, value) == 2) { in iniparser_line()
596 } else if (sscanf(line, "%[^=] = %[;#]", key, value)==2 in iniparser_line()
597 || sscanf(line, "%[^=] %[=]", key, value) == 2) { in iniparser_line()
633 char line [ASCIILINESZ+1] ; in iniparser_load() local
657 memset(line, 0, ASCIILINESZ); in iniparser_load()
663 while (fgets(line+last, ASCIILINESZ-last, in)!=NULL) { in iniparser_load()
665 len = (int)strlen(line)-1; in iniparser_load()
669 if (line[len]!='\n') { in iniparser_load()
680 ((line[len]=='\n') || (isspace(line[len])))) { in iniparser_load()
681 line[len]=0 ; in iniparser_load()
685 if (line[len]=='\\') { in iniparser_load()
692 switch (iniparser_line(line, section, key, val)) { in iniparser_load()
710 fprintf(stderr, "-> %s\n", line); in iniparser_load()
717 memset(line, 0, ASCIILINESZ); in iniparser_load()