Skip to content

Missing scanf family of functions #175

Open

Description

@stefanct

If there is no intention to add support for them, I think it should at least be documented as it is quite essential for parsing data in some applications. What's your stance on the issue? Is there any suggested workaround currently?

Activity

  1. phillipjohnston commented on Mar 6, 2022

    @phillipjohnston
    Member

    I have no stance on these functions :). I haven't developed a system that has required them, and you are the first to ask. No technical or ideological reason.

  2. phillipjohnston commented on Mar 6, 2022

    @phillipjohnston
    Member

    picolibc (newlib-nano) has full support. I only mention as an immediate solution - I assume you are here because you do not wish to use newlib.

  3. phillipjohnston commented on Mar 6, 2022

    @phillipjohnston
    Member

    Looking over these functions, one blocker is that I do not actually support FILE or stdin/out/err in this library, so it would be gated on having a suitable solution for that.

    Some of the functions, such as sscanf and vsscanf, look like they would be suitable for implementation, however.

  4. stefanct commented on Mar 6, 2022

    @stefanct
    Author

    Yes, in this regard it is similar to some of the printf functions. sscanf is what I was after in this case. It's not a big deal for me and I can work around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions