The pointer converter handles the %p conversion. It uses the hex
converter for most of the conversion.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG121c6454141d: [libc] add printf pointer conv
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is the new header ptr_converter.h needed to be added to converter object library in CMakeLists.txt?
libc/test/src/stdio/sprintf_test.cpp | ||
---|---|---|
361 | Whats the point of this test? |
libc/test/src/stdio/sprintf_test.cpp | ||
---|---|---|
361 | I want to make sure it writes something for a real pointer, but since I don't know the value of the pointer before runtime I can't fix the return value. I use the other cases to check that it actually returns correct values. |
Whats the point of this test?