%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /glibc-2.29/stdlib/
Upload File :
Create Path :
Current File : //glibc-2.29/stdlib/tst-atof1.c

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static int
do_test (void)
{
  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;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"

Zerion Mini Shell 1.0