EmbUser Community Member

  • Member since Sep 28th 2021
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • EmbUser -

    Replied to the thread Issue in scanning the user input like: scanf("%[^\n]", name);.

    Post
    Hello Nino, Thank you for your reply! In line 7, I use the pattern %[^\n] for getting input for char array till a new line char using scanf. I'm not using/connecting any specialized/embedded device/target or interface. Just running the IDE on my…
  • EmbUser -

    Posted the thread Issue in scanning the user input like: scanf("%[^\n]", name);.

    Thread
    I know this is an unsecure way of using scanf. When I use this in any other web/local IDE, program works. I'm using Segger Embedded Studio for RISCV V 5.60a 64 bit non commercial license for non embedded learning purpose C Source Code (16 lines)