Since I'm taking these values from an array of strings, I should of course copy and parse them into an array of int's, so it would look more like this:
..or am I missing/skipping some steps?Code:char new_string[lineNo]; int int_conversion[lineNo]; for(lineNo = 1; lineNo < MAX_LINES; lineNo++) { if(isdigit(data[lineNo].variable)) { strcpy(new_string[lineNo], data[lineNo].variable; } } int_conversion[lineNo] = atoi( new_string[lineNo] );