summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/scanf.cpp
AgeCommit message (Collapse)Author
2021-04-10AK+Everywhere: Make StdLibExtras templates less wrapper-yAnotherTest
This commit makes the user-facing StdLibExtras templates and utilities arguably more nice-looking by removing the need to reach into the wrapper structs generated by them to get the value/type needed. The C++ standard library had to invent `_v` and `_t` variants (likely because of backwards compat), but we don't need to cater to any codebase except our own, so might as well have good things for free. :^)
2021-04-08LibC: Fix coding style in scanf helpersAndreas Kling
2021-04-04LibC: Teach `vsscanf()` to consume the width specifierJelle Raaijmakers
Previously, `vsscanf()` would crash whenever it encountered a width specification. Now, it consumes the width specification but does not yet do anything with it.
2021-04-04LibC: Use 'long long' specialisations of scanf's read_element_concreteAnotherTest
...for 'long long' and 'unsigned long long', instead of reading them as 'long's and 'unsigned long's. Also add a test for values that can only fit in (unsigned) long long. Fixes #6096.
2021-03-12Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)Andreas Kling
Good-bye LogStream. Long live AK::Format!
2021-02-25LibC: Make it compile on 64-bitAndreas Kling
It won't actually work on 64-bit yet, but let's do our future selves a favor and make it compile.
2021-02-23Everywhere: Rename ASSERT => VERIFYAndreas Kling
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.
2021-02-16LibC: Teach scanf how to read "%lu" and "%llu" (unsigned long{, long})AnotherTest
This makes the gcc port work again.
2021-02-15LibC: Reimplement scanf from the ground upAnotherTest
This adds support for some previously unsupported features (e.g. length modifiers) and fixes at least one FIXME. Fixes #90.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling