Skip to content

This is my tutorials repository, every new concept learned is committed to this repository

Notifications You must be signed in to change notification settings

gkiplangat/git_tuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PID && PPID Created a pid.c file

  • The file contains code that helps to retrieve the process id of the current process
  • Here is the code
#include <stdio.h>
#include <unistd.h>

/**
 * main -entry point
 * @void: - Means no argument
 * Return: 0 on success
 */
int main(void)
{
        pid_t my_pid;

        my_pid = getpid();
        printf("%u\n", my_pid);
        return (0);
}

About

This is my tutorials repository, every new concept learned is committed to this repository

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published