#include <stdio.h>
int main ()
{
char sentence []="Rudolph is 12 years old";
char str [20];
int i;
sscanf (sentence,"%s %*s %d",str,&i);
printf ("%s -> %d\n",str,i);
return 0;
what is the role of "%*s" here?
i know "rudolph" will be print to str
usually if use *s , we have to point how many characters will be copy from buffer(?)
and %d is 12
thanks!!