C shell program to get max number of command line arguments that can be passed to a program

C shell program to get max number of command line arguments that can be passed to a program.

Code:- 

#include<stdio.h>

#include<sys/param.h>

#include<limits.h>

#include<unistd.h>

int main()

{

    long int max =sysconf(_SC_ARG_MAX);

    printf("ARG MAX = %ld \n",  max);

    return 0;

}

Comments

Popular posts from this blog

Assembly Program Code For Brick Breaker Game

Polynomial C++ Class