[PATCH] man: strto[iu](): BUGS: Document precedence of ENOTSUP over ERANGE

Thorsten Glaser tg at mirbsd.de
Sat Jan 20 16:49:36 UTC 2024


Alejandro Colomar dixit:

>ENOTSUP means we have a _valid_ number, followed by other text.
>
>	s = "3 pears";

>Go do that with strtoi(3) or strtonum(3).

Ah, we have a semantic difference then.

For strtonum, "3 pears" is not valid.

I would still have it in CAVEATS, not BUGS, as that’d be
very judgemental, but it’s not my call.

bye,
//mirabilos
-- 
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success 18:35⎜<asarch> "Psychotics are consistently
inconsistent. The essence of sanity is to be inconsistently inconsistent


More information about the libbsd mailing list