Execute a system command: Difference between revisions

Content added Content deleted
Line 40: Line 40:


=={{header|C}}==
=={{header|C}}==
{{works with|POSIX|.1-2001}}
ISO C & POSIX:


<lang c> #include <stdlib.h>
<lang c>#include <stdlib.h>

int main()
int main()
{
{
system("ls");
system("ls");
return 0;
}</lang>
}</lang>


=={{header|C++}}==
=={{header|C++}}==