Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Program to get the GroupID ( GID ) information.

--------------------------------------------------------------------------------



/* Program to get the GroupID ( GID ) information
*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>


int main()
{
gid_t gid;

if ((gid = getgid()) < 0) {
perror("
getgid error");
} else {
printf("
The group id is : %d", gid);
}

if ((gid = getegid()) < 0) {
perror("
getegid error");
} else {
printf("
The effective group id is : %d", gid);
}

printf("<BR>);
return(0);
}

 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG