Skip to content

[Bug] rt_sscanf() 在处理 %[ ] 时,出错 #9853

@dongly

Description

@dongly

RT-Thread Version

8cf5389

Hardware Type/Architectures

STM32F407

Develop Toolchain

GCC

Describe the bug

    data = "+MIPURC: \"rtcp\",0,240,HTTP/1.1 200 OK"
    rt_sscanf(data, "+MIPURC:%*[^,],%d,%d", &device_socket, (int *)&bfsz);

以上语句, device_socket ,bfsz 不能正确获取到 0, 240

Other additional context

No response

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