Endswith String Function In C