# include < stdio.h>
# include < stdlib.h>
# include < unistd.h>
int main()
{
long limit;
/* GET THE LIMIT OF THE ARGUMENT */
if((limit = sysconf(_SC_ARG_MAX)) < 0)
{
perror("ARG MAXIMUM LIMIT ERROR
");
}
else
{
printf("ARGUMENT LIMIT IS %ld
",limit);
}
/* GET THE LIMIT OF THE CHILD PROCESS */
if((limit = sysconf(_SC_CHILD_MAX)) < 0)
{
perror("CHILD MAXIMUM LIMIT ERROR
");
}
else
{
printf("MAXIMUM CHILD PROCESS %ld
",limit);
}
printf("
");
return(0);
}