Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
sfcvt.c File Reference
#include <limits.h>
#include <sfio/sfhdr.h>
Include dependency graph for sfcvt.c:

Go to the source code of this file.

Macros

#define SF_INTPART   (SF_IDIGITS/2)
 
#define SF_INFINITE   ((_Sfi = 3), Inf)
 
#define SF_ZERO   ((_Sfi = 1), Zero)
 

Functions

char * _sfcvt (void *dv, int n_digit, int *decpt, int *sign, int format)
 

Variables

static char * Inf = "Inf"
 
static char * Zero = "0"
 

Macro Definition Documentation

◆ SF_INFINITE

#define SF_INFINITE   ((_Sfi = 3), Inf)

Definition at line 21 of file sfcvt.c.

◆ SF_INTPART

#define SF_INTPART   (SF_IDIGITS/2)

Definition at line 20 of file sfcvt.c.

◆ SF_ZERO

#define SF_ZERO   ((_Sfi = 1), Zero)

Definition at line 22 of file sfcvt.c.

Function Documentation

◆ _sfcvt()

char * _sfcvt ( void *  dv,
int  n_digit,
int *  decpt,
int *  sign,
int  format 
)
Parameters
dvvalue to convert
n_digitnumber of digits wanted
decptreturn decimal point
signreturn sign
formatconversion format

Definition at line 31 of file sfcvt.c.

References _Sfi, _Sfneg10, _Sfpos10, format, SF_IDIGITS, SF_INFINITE, SF_INTPART, SF_MAXDIGITS, SF_MAXEXP10, SF_ZERO, SFFMT_EFORMAT, sfucvt, sign(), and ulong.

Referenced by sfprint().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ Inf

char* Inf = "Inf"
static

Definition at line 19 of file sfcvt.c.

◆ Zero

char * Zero = "0"
static

Definition at line 19 of file sfcvt.c.