[libc] add scanf pointer conversion
authorMichael Jones <michaelrj@google.com>
Tue, 24 Jan 2023 22:41:28 +0000 (14:41 -0800)
committerMichael Jones <michaelrj@google.com>
Wed, 25 Jan 2023 23:29:25 +0000 (15:29 -0800)
commitedf964e0ddfb98cf4ac849fa87bcc58a4d86a89e
treefd765578ec4d208eceab7f90dc9376a9aababa97
parentafa764c9a6d68ab6de94a5d007e0b468e65ae946
[libc] add scanf pointer conversion

This patch adds the last conversion for scanf, %p. It is set up to match
the %p implementation in our printf.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D142510
libc/src/stdio/scanf_core/CMakeLists.txt
libc/src/stdio/scanf_core/converter.cpp
libc/src/stdio/scanf_core/converter_utils.h
libc/src/stdio/scanf_core/int_converter.cpp
libc/src/stdio/scanf_core/ptr_converter.cpp [new file with mode: 0644]
libc/src/stdio/scanf_core/ptr_converter.h [new file with mode: 0644]
libc/test/src/stdio/sscanf_test.cpp