4 ms·
> That's the difference between bad API design and good API design. strncpy is bad. But so are many APIs Agreed. > arrays were zero-indexed to save one or two
by dllthomas 10y ago
> That's the difference between bad API design and good API design. strncpy is bad. But so are many APIs
Agreed.
> arrays were zero-indexed to save one or two instructions in a compiler
Actually, I find zero-indexing more consistent whenever you need to do math with the indexes.