title: execlp with find as parameter
body: <p>I'll try to explain my problem. If i execute the following command </p>
  
  <pre><code>find ~ -name file.txt
  </code></pre>
  
  <p>in Linux, all the files that are named <code>file.txt</code> will be displayed on the console screen. I want to make a C program that will do the same thing, using the <code>execlp</code> function to find all files that have a certain name like <code>file.txt</code>. </p>
  
  <p>If I do something like this: </p>
  
  <pre><code>execlp("find","find","-name","file.txt",NULL); 
  </code></pre>
  
  <p>it compiles fine , but at execution it only displays the file with the name <code>file.txt</code> that is located in current working directory. 
  If i do something like this in my program: </p>
  
  <pre><code>execlp("find","find","~","-name","file.txt"); 
  </code></pre>
  
  <p>it compiles fine,but at execution it gives me the following error: </p>
  
  <pre><code>find: `~': No such file or directory. 
  </code></pre>
  
  <p>What parameters should i give to the <code>execlp</code> function to search for <code>file.txt</code> in all available directories? I need to do this with the <code>execlp</code> function.
  Thank you very much! </p>