tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: strsuftoi(3), strsuftou(3) proposal in libc



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 29.10.2015 14:25, Greg Troxel wrote:
> 
> Kamil Rytarowski <n54%gmx.com@localhost> writes:
> 
>> I'm proposing adoption of a new functions in libc: -
>> strsuftoi(3), - strsuftou(3), - their _l counterparts.
> 
> Are these specified by any standard?
> 

No. They are extensions.

> Assuming no, why should new functionality be added to libc, since
> it will encourage nonportable code.  (Cleaning up previous extra
> stuff is a separate issue.)
> 

Do you think libutil(3) might be a better place? There are already
similar string functions, strpct(3) and strspct(3) (decimal percent
formatters).

> Are these helper functions for some specific purpose?  Perhaps
> they belong in a different library that's intended to be used
> within our tree but not by users.
> 

The purpose it to replace strsuftoll(3) with a new cleaner function
and deduplicate code. I want to make it available for users.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWMn8xAAoJEEuzCOmwLnZs6fYQAMHPoCmolLutUCu9ZPgdpLgw
xhUaSPPhs7VhYo0ABFSm42j0TrcvPoGFAY73e589xi2cQZD+lIIpntWJmAb5EOxz
sy0my51kmUubINoK5iS699waKMBjT+gUGttAKwbouR65lqfOGfYPPa4IkzuxdCpp
HDFHwT6hTF2aUKnp/Pze3BW2U6Z3GegbGtWBAjK3cJGXbAjJIHqhqc568q2iWgdY
hsw8MHcLZv6tLpDs/uFsg6TSQlfVpJSC3oz+cGN06Jl4Ir55iFtgiZj5Z33cmIGI
rL8YzqnfvUIOBmqjN8EGwWHr7VCrhjrQtcso3QHxabn73O4Cqu68ZiZxVksrJo0v
Hu32GdD4HBWXvo4+6zj+AN+Jt0DxYXtH79Pe2uPUzNqAwlCDHVHKLLb8JKPPeKSs
gebXqeiQKATWX2Qkwff3Dc9UrgqOgKSf/mjO2J552RU6/pBUNYPblbl78n3UMuGa
xqwFj0h2/hdVcS2Ll7DvxfY2U3Z2/vceGVoshNHBdu9P7Zl6lr0XX3RysS9EEaRr
MAl/7Tb6DC7W323K7pwblymcBnhBCZQjo0k4cJ5xptYEYGSMFpRm7K+CaA0fjlsu
pqjmAQreFTHucpBfJxTItS8PtNMeKiwkVHh/sz+7s6zR6ZAK2JjVJEpOafVpDrlr
EyQVvamuDZWdJSjYJB+0
=onEN
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index