This commit adds support for the `lib_scanf` function, which is a stream-oriented version of the `scanf` function. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>