#include <stdio.h> #include <regex.h>
int ret = sscanf2(data, "%as %d", &name, &age); sscanf2
If you wanted to implement %as yourself: #include <stdio
#include <stdio.h> #include <regex.h>
int ret = sscanf2(data, "%as %d", &name, &age);
If you wanted to implement %as yourself: