Formatted Input
fscanf( fp, fmt, *args ... )
sscanf( string, fmt, *args ... )
Examples:
fscanf( fp, “%s %s”, firstName, lastname );
sscanf( argv[1], “%d %d”, &int1, &int2 );
Returns number of successful args matched … be careful, scanf should only be used in limited cases where exact format is know in advance
See K&R book or man pages for all the details