[libc-commits] [libc] [libc] Additional check for File support in scanf_core (PR #128079)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Feb 20 14:27:31 PST 2025
petrhosek wrote:
> I'm not sure if this will work for baremetal, since right now the fscanf scanner requires either the system's FILE or our own FILE. We might need to add a hook similar to what's in https://github.com/llvm/llvm-project/blob/main/libc/src/stdio/baremetal/printf.cpp, or alternately just add baremetal versions of `getc` and `ungetc`
I have a WIP implementation of that locally, I'll clean it up and send it for review.
https://github.com/llvm/llvm-project/pull/128079
More information about the libc-commits
mailing list