Opening Programs in C

#include <unistd.h>
#include <stdio.h>
int main(void)
{
 char* prog[3];
 prog[0] = "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe";
 prog[1] = "http://zahidserver.runhosting.net";
 prog[2] = '\0';
 execvp(prog[0], prog);
}

Comments

Popular posts from this blog

Name Age program in C

How to make basic TicTacToe game in C

How to make Simple Calculator in C