Execute a system command: Difference between revisions

→‎{{header|C}}: this C code compiles on every machine having a reasonable C compiler, and system is POSIX compliant
(→‎{{header|C}}: this C code compiles on every machine having a reasonable C compiler, and system is POSIX compliant)
Line 23:
 
=={{header|C}}==
{{works with|gccPOSIX|4.0.1-2001}}
 
'''Platform:''' [[BSD]]
(The command <tt>ls</tt> may not exist on some system)
 
<lang c>
#include <stdlib.h>
Line 31 ⟶ 34:
system("ls");
}
</lang>
 
=={{header|C++}}==