title: Convert char to bool (passing bool to main)
body: <p>Is there a recommended/correct/safer way to pass a bool argument to your main function?</p>
  
  <p>Are this</p>
  
  <pre><code>$ ./my_software true
  </code></pre>
  
  <p>with this as <code>my_software</code>: </p>
  
  <pre><code>int main(argc, argv* []){
  
      bool my_bool = argv[1];
  
      return 0;
  }
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>$ ./my_software 1
  </code></pre>
  
  <p>with this as <code>my_software</code>: </p>
  
  <pre><code>int main(argc, argv* []){
  
      bool my_bool = atoi(argv[1]);
  
      return 0;
  }
  </code></pre>
  
  <p>equivalent? Am I missing a conversion in the first one?</p>