Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
/* perform a unix/linux ls command on argument 1 */
int main(int argc, char* argv[])
{
int pid;
switch(pid=fork())
{
case -1:
fatal("fork error 1");
case 0:
execl("/bin/ls","ls","-l",argv[1],NULL);
fatal("exec call 1 ");
}
/* wait for child process to finish */
while(wait((int *)0) != pid)
;
printf("ending fork\n");
}
int fatal(char str[])
{
printf("%s\n");
exit(1);
}