Z
Zach
What does the "%*s" in the sscanf call mean? Also when reading in the
values why does the int variable have the address-of operator (&) but
the char array str does not?
/* sscanf example */
#include <stdio.h>
int main (void)
{
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;
}
Zach
values why does the int variable have the address-of operator (&) but
the char array str does not?
/* sscanf example */
#include <stdio.h>
int main (void)
{
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;
}
Zach