title: Is system() call in C program safe?
body: <p>I wanted to use linux commands in my C program. I know, we can use system() call to execute commands by spawning it. 
  Whether system() call is safe or not? When I disassemble the exe of my C program, I can see the commands which I use in my program :(</p>
  
  <p>[Edit]    below is the example for my program and image has a "echo hello" command in it.</p>
  
  <pre><code>arul@OA2:~/work/images/samples$ cat a.c
  #include &lt;stdio.h&gt;
  int main()
  {
      printf("hai\n");
      system("echo hello\n");
      return 0;
  }
  arul@OA2:~/work/images/samples$ gcc a.c -o a
  arul@OA2:~/work/images/samples$ ./a
  hai
  hello
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NArLh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NArLh.png" alt=" Look at the below image which contains my commands &lt;code&gt;system()&lt;/code&gt; call"></a></p>