Example #1
0
int main(int argc, char **argv)
{
    args_t args;

    args_init (&args);

    if (!args_parse (&args, argc, argv)) {
	return -1;
    } else {
	if (args.Verbose)
	    args_print (&args);
    }
    return ! Yee_Compare(&args);
}
int main(int argc, char **argv)
{
   CompareArgs args;

   if (!args.Parse_Args(argc, argv)) {
      printf("%s", args.ErrorStr.c_str());
      return -1;
   } else {
      if (args.Verbose) args.Print_Args();
   }

   const bool passed = Yee_Compare(args);
   if (passed) {
      if(args.Verbose)
         printf("PASS: %s\n", args.ErrorStr.c_str());
   } else {
      printf("FAIL: %s\n", args.ErrorStr.c_str());
   }

   return passed ? 0 : 1;
}