All, does anyone know of any free (or even not free) collection of common functions such as converting strings to numbers (with error checking, etc.) and stuff like that?
In other words, things that will make a real-world interface without causing a program to crash?
Boost is probably the best one out there in my opinion. It has many useful things in it that can be used for a variety of things like your string to int question
Thanks very much for the fast replies. I took a look at the atoi function in the standard libraries but it has limitations. It returns "0" for a failure but zero is a valid number as well. It also returns a number up to the first invalid number in string format. For example '56xxt' will return 56.
I will try and google "boost" and see if that works for me.