In this source-code of Arwin I saw :
fprc_func = GetProcAddress(hmod_libname,argv[2]);
if(fprc_func == NULL)
{
printf("Error: could find the function in the library!\n");
exit(-1);
}
printf("%s is located at 0x%08x in %s\n",argv[2],(unsigned int)fprc_func,argv[1]);
Why we use exit(-1)
and not use exit(1)
here ?
Also please explain the printf
statement in a understanding way.