Add support for %lc in printf by calling internal wcrtomb function and relevant end-to-end sprintf test. Additionally, made the following changes: - Modified printf parser for recognizing length modifier - Added two internal error codes. - Added a flag to disable wchar support on windows platform. - To keep printf interface header only, converted wcrtomb and CharacterConverter to header only implementation and removed the cpp source. Resolves GPU libc issues in #169983 and original issue: #166598 --------- Co-authored-by: shubhe25p <shubhp@mbm3a24.local> Co-authored-by: Joseph Huber <huberjn@outlook.com>
libc Documentation ================== The libc documentation is written using the Sphinx documentation generator. It is currently tested with Sphinx 1.1.3. To build the documents into html configure libc with the following cmake options: * -DLLVM_ENABLE_SPHINX=ON * -DLIBC_INCLUDE_DOCS=ON After configuring libc with these options the make rule `docs-libc-html` should be available.