fphook.c File Reference

#include <string.h>
#include <stdarg.h>
#include "../stdio/loc_incl.h"
#include <stdlib.h>
#include "../ansi/ext_fmt.h"

Include dependency graph for fphook.c:

Go to the source code of this file.

Defines

#define NDIGINEXP(exp)   (((exp) >= 100 || (exp) <= -100) ? 3 : 2)
#define LOW_EXP   -4
#define USE_EXP(exp, ndigits)   (((exp) < LOW_EXP + 1) || (exp >= ndigits + 1))

Functions

static char * _pfloat (long double r, register char *s, int n, int flags)
static char * _pscien (long double r, register char *s, int n, int flags)
static char * _gcvt (long double value, int ndigit, char *s, int flags)
char * _f_print (va_list *ap, int flags, char *s, char c, int precision)
void _str_ext_cvt (const char *s, char **ss, struct EXTEND *e)
double _ext_dbl_cvt (struct EXTEND *e)
double strtod (const char *p, char **pp)

Variables

int _fp_hook = 1


Define Documentation

#define LOW_EXP   -4
 

Definition at line 82 of file fphook.c.

#define NDIGINEXP exp   )     (((exp) >= 100 || (exp) <= -100) ? 3 : 2)
 

Definition at line 81 of file fphook.c.

#define USE_EXP exp,
ndigits   )     (((exp) < LOW_EXP + 1) || (exp >= ndigits + 1))
 

Definition at line 83 of file fphook.c.

Referenced by _gcvt().


Function Documentation

double _ext_dbl_cvt struct EXTEND e  ) 
 

Definition at line 719 of file ext_comp.c.

Referenced by strtod().

char* _f_print va_list ap,
int  flags,
char *  s,
char  c,
int  precision
 

Definition at line 151 of file fphook.c.

References _gcvt(), _pfloat(), _pscien(), FL_LONGDOUBLE, strlen(), and va_arg.

static char* _gcvt long double  value,
int  ndigit,
char *  s,
int  flags
[static]
 

Definition at line 86 of file fphook.c.

References _ecvt(), FL_ALT, FL_SIGN, FL_SPACE, i, sign, and USE_EXP.

Referenced by _f_print().

static char* _pfloat long double  r,
register char *  s,
int  n,
int  flags
[static]
 

Definition at line 13 of file fphook.c.

References _fcvt(), FL_ALT, FL_SIGN, FL_SPACE, i, and sign.

Referenced by _f_print().

static char* _pscien long double  r,
register char *  s,
int  n,
int  flags
[static]
 

Definition at line 46 of file fphook.c.

References _ecvt(), FL_ALT, FL_SIGN, FL_SPACE, and sign.

Referenced by _f_print().

void _str_ext_cvt const char *  s,
char **  ss,
struct EXTEND e
 

Definition at line 458 of file ext_comp.c.

Referenced by strtod().

double strtod const char *  p,
char **  pp
 

Definition at line 189 of file fphook.c.

References _ext_dbl_cvt(), _str_ext_cvt(), and e.

Referenced by atof().


Variable Documentation

int _fp_hook = 1
 

Definition at line 10 of file fphook.c.


Generated on Fri Apr 14 23:14:45 2006 for minix by  doxygen 1.4.6