Back to index

glibc  2.9
Defines | Functions
tst-atof1.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 18 of file tst-atof1.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 6 of file tst-atof1.c.

  char buf[100];
  snprintf (buf, sizeof (buf), "%g", atof ("0x10p-1"));
  if (strcmp (buf, "8") != 0)
      printf ("got \"%s\", expected \"8\"\n", buf);
      return 1;
  return 0;

Here is the call graph for this function: