View Single Post

  #4 (permalink)  
Old 03-13-2006, 06:46 PM
charvi charvi is offline
Junior Member
User
 
Join Date: Sep 2005
Posts: 25
Rep Power: 0
charvi
Default

Write c program:

Code:
vi test.c
Type following program:

Code:
#include <unistd.h>
#include <stdio.h>
int main(void){
 long n = sysconf(_SC_NGROUPS_MAX);
 printf("Max Groups : %ld\n",n);
 return 0;
}
Compile
Code:
gcc test.c -o test
Run program:
Code:
./test
Output:
Code:
Max Groups : 65536
Reply With Quote