/*
* Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*/
int
int argc;
char **argv;
{
double d, d2;
double ld;
char *r;
/*
** Sendmail uses printf and scanf with doubles,
** so make sure that this works.
*/
d = 1.125;
r = "0 1.125 1";
"got %s instead\n", buf);
d = 1.125;
r = "1.125";
"got %s instead\n", buf);
d2 = 0.0;
if (d != d2)
{
"wanted %f, got %f\n", d, d2);
"error ignored since SM_CONF_BROKEN_STRTOD is set for this OS\n");
}
#else /* SM_CONF_BROKEN_STRTOD */
"wanted %f, got %f\n", d, d2);
#endif /* SM_CONF_BROKEN_STRTOD */
ld = 2.5;
r = "1.125 2.5";
"got %s instead\n", buf);
return sm_test_end();
}