Rev 426 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 426 | Rev 436 | ||
---|---|---|---|
Line 153... | Line 153... | ||
153 | { |
153 | { |
154 | printf("ERROR: Opening settings file!"); |
154 | printf("ERROR: Opening settings file!"); |
155 | return; |
155 | return; |
156 | } |
156 | } |
157 | // read all lines from file |
157 | // read all lines from file |
158 | while(fgets_(settingsline, LINE_MAX, fp) != 0) |
158 | while(fgets_(settingsline, LINE_MAX, fp) != NULL) |
159 | { |
159 | { |
160 | if ( // ignorelines starting with \r,\n,' ',';','#' |
160 | if ( // ignorelines starting with \r,\n,' ',';','#' |
161 | (settingsline[0] != '\n') && |
161 | (settingsline[0] != '\n') && |
162 | (settingsline[0] != '\r') && |
162 | (settingsline[0] != '\r') && |
163 | (settingsline[0] != ' ' ) && |
163 | (settingsline[0] != ' ' ) && |