54 void var_sscanf(
char *str,
const char* fmt, ...);
58 const char* p=
"this is example string";
63 sprintf(str,
"%p", p);
64 printf(
"p=%p, str after sprintf: [%s]\n", p, str);
65 sscanf(str,
"%p", (
void**)&p2);
66 printf(
"str=[%s], p2 after sscanf: %p \n", str, p2);
67 var_sscanf(str,
"%p", (
void**)&p3);
68 printf(
"after var_sscanf(): str=[%s], p3 after sscanf: %p \n", str, p3);
69 printf(
"sizeof(p3) = %d \n",
sizeof(p3));
76 long long ll=strtoll(str, &endptr, 16);
77 void* lltovoidptr= (
void*)ll;
78 printf(
"lltovoidptr = %p, data pointed to should be [%s] = it is [%s]\n", lltovoidptr, p, lltovoidptr);
82 void var_sscanf(
char *str,
const char* fmt, ...)
86 vsscanf(str, fmt, vargs);