Back to index

glibc  2.9
s_nan.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ieee754.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


double __nan (const char *tagp)

Function Documentation

double __nan ( const char *  tagp)

Definition at line 29 of file s_nan.c.

  if (tagp[0] != '\0')
      char buf[6 + strlen (tagp)];
      sprintf (buf, "NAN(%s)", tagp);
      return strtod (buf, NULL);

  return NAN;

Here is the call graph for this function:

Here is the caller graph for this function: