exit (result);
return result;
main (void){  double d[6];  long l[6];  int i, j;  int tst_locale;  int result = 0;  tst_locale = 1;  if (tst_locale)    if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL)      {	puts ("Failed to set en_US locale, skipping locale related tests");	tst_locale = 0;      }  for (i = 0; i < 4; ++i)    {      if (sscanf (str_double[i], "%11lf%11lf%11lf%11lf%11lf%11lf",		  &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6)	{	  printf ("Double sscanf test %d wrong number of "		  "assigned inputs\n", i);	  result = 1;	}      else	for (j = 0; j < 6; ++j)	  if (d[j] != val_double[6 * i + j])	    {	      printf ("Double sscanf test %d failed (%g instead of %g)\n",		      i, d[j], val_double[6 * i + j]);	      result = 1;	      break;	    }    }  for (i = 0; i < 4; ++i)    {      if (sscanf (str_long[i], fmt_long[i],		  &l[0], &l[1], &l[2], &l[3], &l[4], &l[5]) != 6)	{	  printf ("Integer sscanf test %d wrong number of "		  "assigned inputs\n", i);	  result = 1;	}      else	for (j = 0; j < 6; ++j)	  if (l[j] != val_long[j])	    {	      printf ("Integer sscanf test %d failed (%ld instead %ld)\n",		      i, l[j], val_long[j]);	      result = 1;	      break;	    }      if (! tst_locale)	break;    }  exit (result);}