3 ms·
At some point, someone needs to point out the nonsense and just accept operator overloading... Or maybe writing a version_cmp function or similar.
by dragontamer 6y ago
At some point, someone needs to point out the nonsense and just accept operator overloading...
Or maybe writing a version_cmp function or similar.
- 0xbadcafebee 6y agoThe language already has an incredibly simple facility to compare version numbers (that GP mentions, but also there's macros), but you want to do it in a more complex way?
- mortehu 6y agoI don't understand your exact point, but the GNU C library ships with the strverscmp() and versionsort() functions, which do the same thing as `ls -v`.