I've got this string:

Code:
char * string = "2+2";
I want to get an integer value = 4 from this. How would I go about doing this.

Thanks