diff options
author | Christ van Willegen <cvwillegen@gmail.com> | 2023-09-03 17:22:37 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-09-03 17:22:37 +0200 |
commit | aa90d4f031f73a34aaef5746931ea746849a2231 (patch) | |
tree | 6f79d911a74857f79f793bf4ea8ad03c48b78df8 /runtime/doc/builtin.txt | |
parent | 71ebf3bacaa22c841d9a8cb050c52fb21ac0970a (diff) |
patch 9.0.1856: issues with formatting positional argumentsv9.0.1856
Problem: issues with formatting positional arguments
Solution: fix them, add tests and documentation
closes: #12140
closes: #12985
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Tentatively fix message_test. Check NULL ptr.
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 507347d973..ef99ca60a1 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -6707,8 +6707,13 @@ printf({fmt}, {expr1} ...) *printf()* a conversion is wider than the field width, the field is expanded to contain the conversion result. The 'h' modifier indicates the argument is 16 bits. - The 'l' modifier indicates the argument is 32 bits. - The 'L' modifier indicates the argument is 64 bits. + The 'l' modifier indicates the argument is a long + integer. The size will be 32 bits or 64 bits + depending on your platform. + The "ll" modifier indicates the argument is 64 bits. + The b and B conversion specifiers never take a width + modifier and always assume their argument is a 64 bit + integer. Generally, these modifiers are not useful. They are ignored when type is known from the argument. |