D
‘’’ #include <stdbool.h>
#include <stdio.h>
#include <string.h>
bool solution(const char *string, const char *ending)
{
bool flag;
int sizeline, sizeend, count = 0;
sizeline = sizeof(string);
sizeend = sizeof(ending);
for (int i = 0; i < sizeend; i++) {
if ((string[sizeline - i - 1] != ending[sizeend - i - 1]) || (sizeline <= sizeend)) {
count++;
}}
if ((count == 0) || (sizeend == "")) return true;
else return false;
}
‘’’