char tampon[81], mot_bidon[81] ;
short int nb_mots, num_ligne=0 ;
/* le fichier est supposé ouvert en mode "rt" */
while ( fgets(tampon, 81, fichier) != NULL ) /*fin de fichier non atteinte*/
{
    nb_mots = 0 ;
    num_ligne++ ;
    while (sscanf(tampon, "%s", mot_bidon)==1) nb_mots ++ ;
    printf("\n La ligne %hd comporte %hd mots.", num_ligne, nb_mots ) ;
}
