Rename check if it end to check if it end.c