#include #include "typo.h" static int fin_de_phrase(int c); char typo_phrase(char c) { static int debut_phrase = 1; if (debut_phrase) { debut_phrase = !isalpha(c); if (islower(c)) return toupper(c); return c; } if (isupper(c)) return tolower(c); debut_phrase = fin_de_phrase(c); return c; } static int fin_de_phrase(int c) { return c == '.' || c == '?' || c == '!'; }