I am trying to read an integer in from the command line, but it keeps reading in the ascii value as the int, and it completely blows up when the number is greater than 9. I know it's probably trivial but can anyone be of assistance please
int main(int argc, char*argv[]){
int x=(int)*argv[1];
int y=(int)*argv[2];
printf("x: %d y: %d\n",(int)x, y);
if the value is less than 10 it just prints the ascii value, otherwise it prints out the first ascii value of that argument