4 ms·
I dunno about this style of code, it looks hard to follow :/ > No newlines in keys, values, or section names. Empty values are not allowed. Comments only on th
by lelanthran 3y ago
I dunno about this style of code, it looks hard to follow :/
> No newlines in keys, values, or section names. Empty values are not allowed. Comments only on their own lines (minus whitespace). Whitespace-insensitive (whitespace at the start of line, end of line, around the “=”, is all ignored). No need for a terminating newline either.
Oh that's more than most C ini parsers do? Isn't that convenient
Nonsense. My ini parser has fewer restrictions (only one, on line length) and looks nothing like that unreadable mess.
Maybe unrelated, but I'm pretty certain I've seen gcc warnings when assigning ints to chars, unsigned or otherwise