-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
It doesn't need to do that. Here is Microsoft's code. It does actually look a bit awkward, given how they're written it. But you could just use _cnt == -1 as a sentinel value to mean "read until null".
This implementation suggest a nuclear bomb exploded: https://github.com/ffainelli/uClibc/blob/master/libc/stdio/_scanf.c.
You don't, here is a (not entirely complete) scanf implementation that doesn't use strlen. Other libc implementations seem to use strlen to feed the input data to a FILE struct so they can reuse their fscanf.