Like string can be converted to integer using atoi() function is it possible to convert strings into long . If so how to do this? Is there a predefined function available for doing this?