convert from char** argv to int

May 18, 2010 at 1:09pm
Hello every body!!
I am trying to get an input from argv which is char**
but i want this input to be an integer value
how can i convert argv[1] to int ??

thanks
May 18, 2010 at 1:56pm
May 18, 2010 at 2:28pm
I found the answer for any one have the same question,

int x=atoi(argv[1]);
Topic archived. No new replies allowed.