I would generalise your code that you've started with
if (strncmp(takimAdi[10-i],deger,strlen(deger))==0)
to an 'ends_with' function. In doing so, you need to check that the length of the string you're checking, eg the 'bursaspor' is longer than the length of the 'ending' - so you would need to consider using 'strlen' as well.
Maybe, some of this looks like
int ends_with(const char * str, const char * ending)
{
int str_len = strlen(str);
int ending_len = strlen(ending);
return
(str_len >= ending_len) &&
}
So you need to replace
// use strcmp here to check the 'end' of the str for 'ending' with some code, and you were heading in the right direction with what you had (if that helps)