/*! \file q4.c

 *  \author EISTI
 *  \version 0.1
 *
 *  \brief calcule le schtroumpf de 2 tableaux
 *
 */

#include <stdio.h>
#include <stdlib.h>

/*! \fn int strlength(char* taille1)
 *  \author EISTI
 *  \version 0.1
 *  \date Fri Jan 15 17:16:51 2010
 *
 *  \brief  calcule le schtroumpf de 2 tableaux
 *
 *  \param ch chaîne dont la taille est à calculer
 *
 *  \return taille de la chaîne
 */

int strlength(char* ch) {

  int taille=0;
 
	while(*ch != '\0'){
		taille++;
		ch++;
	}
  return taille;
}


/*! \fn int main (int argc, char** argv)
 *  \author EISTI
 *  \version 0.1
 *  \date Fri Jan 15 15:29:37 2010
 *
 *  \brief Fonction principale
 *
 *
 * \param argc : Nombre d'argument
 * \param argv : Tableau des arguments
 * \return 0 : le programme doit se terminer normalement
 *
 * \remarks 
 */
int main(int argc, char** argv){
  char chaine[50];

	printf("Saisissez un mot\n");
	scanf("%s",chaine);
  printf("la taille de \"%s\" est : %d\n",chaine,strlength(chaine));
	return (EXIT_SUCCESS);
}
