|
#define | uchar unsigned char |
|
#define | ulong uint64_t |
|
#define | ushort unsigned short |
|
#define | SFSETLOCALE(decimal, thousand) |
|
#define | FP_SET(fp, fn) (fp < 0 ? (fn += 1) : (fn = fp) ) |
|
#define | LEFTP '(' |
|
#define | RIGHTP ')' |
|
#define | QUOTE '\'' |
|
#define | FMTSET(ft, frm, fv, sz, flgs, wid, pr, bs, ts, ns) |
|
#define | FMTGET(ft, frm, fv, sz, flgs, wid, pr, bs) |
|
#define | FMTCMP(sz, type, maxtype) |
|
#define | SFFMT_EFORMAT 01000000000 /* sfcvt converting %e */ |
|
#define | SFFMT_MINUS 02000000000 /* minus sign */ |
|
#define | SFFMT_TYPES |
|
#define | SFFMT_INT 001 /* %d,%i */ |
|
#define | SFFMT_UINT 002 /* %u,o,x etc. */ |
|
#define | SFFMT_FLOAT 004 /* %f,e,g etc. */ |
|
#define | SFFMT_BYTE 010 /* %c */ |
|
#define | SFFMT_POINTER 020 /* %p, %n */ |
|
#define | SFFMT_CLASS 040 /* %[ */ |
|
#define | SF_RADIX 64 /* maximum integer conversion base */ |
|
#define | SF_MAXEXP10 6 |
|
#define | SF_FDIGITS 256 /* max allowed fractional digits */ |
|
#define | SF_IDIGITS 1024 /* max number of digits in int part */ |
|
#define | SF_MAXDIGITS (((SF_FDIGITS+SF_IDIGITS)/sizeof(int) + 1)*sizeof(int)) |
|
#define | _Sfpos10 (_Sftable.sf_pos10) |
|
#define | _Sfneg10 (_Sftable.sf_neg10) |
|
#define | _Sfdec (_Sftable.sf_dec) |
|
#define | _Sfdigits (_Sftable.sf_digits) |
|
#define | _Sfcvinit (_Sftable.sf_cvinit) |
|
#define | _Sffmtintf (_Sftable.sf_fmtintf) |
|
#define | _Sfcv36 (_Sftable.sf_cv36) |
|
#define | _Sfcv64 (_Sftable.sf_cv64) |
|
#define | _Sftype (_Sftable.sf_type) |
|
#define | SFDIGIT(v, scale, digit) |
|
#define | sfucvt(v, s, n, list, type, utype) |
|
char * _sfcvt |
( |
void * |
dv, |
|
|
int |
n_digit, |
|
|
int * |
decpt, |
|
|
int * |
sign, |
|
|
int |
format |
|
) |
| |
|
extern |
- Parameters
-
dv | value to convert |
n_digit | number of digits wanted |
decpt | return decimal point |
sign | return sign |
format | conversion 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().