Skip to content

Make putchar_() optional #203

@yzazik

Description

@yzazik

Hello, great library and all, respect for effort and dedication maintaining and supporting it for all these years.

Now the fun part, I want to use formatting functionality of the library with printf()-like interface but
without HW I/O, means I would only use vfctprintf() and provide my own I/O method at runtime.

But due to dependency on putchar_(), I have to create/generate extra .c file with a dummy putchar_()
and then add it to printf target using target_sources(printf ...), and then build it.

It would be great if putchar_() dependency could be opted out through compile time switch
defined through CMake option or cache variable to make this integration a bit easier.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions