| ▲ | Panzerschrek 4 hours ago | |
C number parsing functions are fundamentally broken, since they are locale-dependend. There are many bugs when one parses a number assuming it has decimal point, but later on systems with locale different from one used on developer's machine it may be suddenly comma instead of point. So, one should avoid using them almost always and use std::from_chars (available in new C++ versions) or some other thirdparty library. | ||
| ▲ | spacechild1 4 hours ago | parent | next [-] | |
+1 for `std::from_chars`. It's also by far the fastest of all standard conversion routines. | ||
| ▲ | raverbashing 3 hours ago | parent | prev [-] | |
And errno errno is a worse mistake than null pointers in general | ||