Hi All.
I m a C++ programmer and I m trying to understand a piece of code.
It fetches the values through command line arguments and makes a decision on the basis of these values. This code is working well but I dont know how?
for (int i = 0; i < argc; i++)
if (strnicmp(argv[i],"/id",3) == 0)
{
strncpy(ID,argv[i] + 3,40); //ID is defined as a char array of size 40
}
kindly tell me how does it work...?