convert from char** argv to int

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
I found the answer for any one have the same question,

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