title: How to get first argument of a program call
body: <p>I'm making a program in C and this is my code:</p>
  
  <pre><code>int main(int argc, char **argv) {
      int n;
      char aux[10];
      sscanf(argv[1], "%[^-]", aux);
      n = atoi(aux);
  }
  </code></pre>
  
  <p>So, if I run the program from command line: my_program -23, I want to get the number "23" to isolate it in a var like an integer, but this don't work and I don't know why...</p>