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 30.10.2015 00:00, Greg Troxel wrote:
>
> Kamil Rytarowski <n54%gmx.com@localhost> writes:
>
>>> 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).
>
> I think it's better to keep stuff out of libc unless it's specified
> by c99 or posix.
>
Right, then libutil(3) looks reasonable. These functions are also
limited for userland.
>>> 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.
>
> The question is then under which circumstances users can reasonbly
> use this; portable code can't use non-standard functions.
>
The strsuftoll(3) function isn't more portable or standard than
strsuftoi(3). The same set of applications (and few more) + libutil(3)
function login_cap(3).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWMqrMAAoJEEuzCOmwLnZsUzgQAIxtAvIyt0PAuj6vCjWaCJKV
TBgIcYIodDNPC7NZSbTWLTZBqiHUZXtpg8/bNipb3Oai6GA3M/vq5rhvxeiARtpe
XLY+onKxvPEWjtkYArLnastvgW2sZvMZ0r6EBaegC9oRzQ4gr2CJPIuLEaJLR2Ln
mCTWBYbmHriQKiqOOhKhiuRHlSXUzu7BOkpQebgDzYBl9w6OgmT0K1I+zPocKHad
CMA3J4f2yC4VPtvbxgs1rDL8qDpAAv4SsUITfZ0t+GWSbUavcfjYxXShIEL6xYsi
QLd7n3PSFrzJyVhDk24GgOLH2S36/aBgLMOWeH1tJsZEZDgDuBVAUV9kvuE/lLtn
Bk+QHPm4gEh+O8O1HODGv/RnPGq1Ol8cl6o4Hvr4K78POILMG1slq7SBjbn1pWef
MHgNaz5h46GQ2oR0x3/kyzDHwPZIFmwRNMOqPKDvhzWxcEBO/HwfnulJt0YXjXVf
vKGAZynfYpAhMF9u4bMYx6zZGngiKs3ivyqCEI0YKQtEM5WVAHrn/HqGIsk7DPw7
ZigmfN2hAlbM2AJgL5DK6I0UG+HDEfytZ/Zu4T408elWIhHRlt0dMScG/YQukP+9
x94Wk/xQo9QGl2zn8f63R33Tom50BkW1lmOv81Anwe3L0q4BsmSv4GlANC1emIaE
ofqtH+DdLxsSjEVrgpdz
=356U
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index