Determine if command is successful/exists c : <p>How can I determine if a command is successful or exists in C? This will need to be compatible with multiple architectures and routers (don't ask haha)</p>

<p>I was thinking of using popen or system or exec(v)(l). But the command I want to check for is sendmail. Since sendmail is a command that runs forever with no output this will be a little hard to do. Any ideas?</p>

<p>Thanks in advance.</p>
