/* Author : Michael Robinson Program : StringToInteger.c Purpose : Converting strings to integers example Updated : 06-28-2014 */ #include #include void String2Int( char *data ) { int number = atoi( data ); printf( "String %s converted to integer = %d\n", data, number ); } int main() { String2Int( "12345" ); exit(0); //needs #include }