Sscanf2 _top_ -
int ret = sscanf2(input, "%as %d", &str, &num); if (ret < 0) fprintf(stderr, "sscanf2 error: %s\n", sscanf2_strerror(ret)); // e.g., "Format string error at position 3"
int sscanf2_s(const char *str, size_t str_max, const char *format, ...); For this guide, we define: sscanf2
int ret = sscanf2(data, "%as %d", &name, &age); int ret = sscanf2(input, "%as %d", &str, &num);