Horje
c ide linux online Code Example
onlne compiler c linux
gcc filename.c -o./ hello
c ide linux online
#include <stdio.h>
#include <unistd.h>

int main()
{
	int id = fork();
	if (id < 0)
		printf("Fork failure\n");
	else if (id == 0)
		printf("Inside child: Pid of Parent Process: %d ::Pid of Child Process: %d\n\n", getppid(), getpid());
	else
		printf("Inside Parent: Pid of Parent Process: %d ::Pid of Child Process: %d\n\n", getpid(), id);
	return 0;
}
c ide linux online
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main(void){
	int i;
        uid_t id = geteuid();
	struct utsname whoami;
	i = uname(&whoami); /* hold the structure */
	if ( i == 0 ){
		printf("Operating system name : %s\n",whoami.whoami);
}

   




Shell

Related
shell how to replace single quote Code Example shell how to replace single quote Code Example
how to both add and commit in git Code Example how to both add and commit in git Code Example
sharepoint list password column Code Example sharepoint list password column Code Example
install csfml on linux Code Example install csfml on linux Code Example
dmesg live Code Example dmesg live Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9