#include <stdio.h> int main () { char sentence[] = "This is a line."; char str [20]; int i; sscanf (sentence,"%s %*s %d",str,&i); printf ("%s -> %d\n",str,i); return 0; }