How to Convert String to Int without using Library Functions in C