[libc-commits] [libc] Add bit width length modifier to printf (PR #82461)
Om Prakaash via libc-commits
libc-commits at lists.llvm.org
Tue Mar 26 22:38:33 PDT 2024
omprakaash wrote:
Currently bit widths (<= 0) result in a output of zero. Is this a good way to deal with this ? I think that that user would have a hard time telling what caused the output to be zero. Maybe in this case, it is better to just skip conversion and just output the entire conversion as is a string (%w-1d would display "%w-1d" ), as it is clearly an invalid conversion specification. The specifications state that N has to be greater than 0 too.
https://github.com/llvm/llvm-project/pull/82461
More information about the libc-commits
mailing list