FRI-OS
Main Page
Namespaces
Classes
Files
Examples
example/posix/processes-execl.c
Shows how to execute and external program in a process
#include <stdio.h>
#include <unistd.h>
int
main(
int
argc,
const
char
* argv[])
{
printf(
"Starting\n"
);
execlp(
"ls"
,
"ls"
,
"-l"
,
"-a"
,
"."
, NULL);
printf(
"Something went wrong\n"
);
return
1;
}
Generated on Mon Nov 3 2014 14:54:55 for FRI-OS by
1.8.6