Hello, voici un petit exercice, tiré du livre "The C Programming Language" (K&R).
En suivant ce prototype (vous pouvez changer le nom des paramètres) :
int strend(char *s, char *t)
Créez une fonction qui retourne 1 si la string s se termine par la string t,sinon, retourne 0.
Exemples :
strend("ABCDavy","Davy"); // == 1
strend("Melinyel","oyel"); // == 0
strend("Microsoft","sofa"); // == 0
strend("Forum","rum"); // == 1
Je posterais ma solution mardi