Skip to content
Permalink
1f55ce483b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (23 sloc) 438 Bytes
#include <stdio.h>
#include <stdlib.h>
static int
do_test (void)
{
int status = 0;
const char s[] = "0x";
char *ep;
double r = strtod (s, &ep);
if (r != 0)
{
printf ("r = %g, expect 0\n", r);
status = 1;
}
if (ep != s + 1)
{
printf ("strtod parsed %ju characters, expected 1\n", ep - s);
status = 1;
}
return status;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"