Function To Convert String To Integer In C