Back to index

glibc  2.9
s_nanf.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ieee754.h>

Go to the source code of this file.


float __nanf (const char *tagp)

Function Documentation

float __nanf ( const char *  tagp)

Definition at line 29 of file s_nanf.c.

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

  return NAN;

Here is the call graph for this function:

Here is the caller graph for this function: