#include #include #include #include "typo.h" #include "lire_chaine.h" #define FIN_DE_PHRASE '.' int main(void) { for(;;) { char *s = lire_chaine("Entrer un texte : "); if (s == NULL) break; else { char *p = s; typo_phrase(FIN_DE_PHRASE); while(*p != '\0') { *p = typo_phrase(*p); p++; } printf("-> \"%s\"\n", s); } free(s); } printf("\n"); return EXIT_SUCCESS; }