nfs-ganesha 1.4
|
parse_type.h: transform number to string This file provide function to transform real and bigint to a string and conversely. More...
Go to the source code of this file.
Defines | |
#define | PRINT_LEN 20 |
Functions | |
int | real2str (char *str, double num) |
int | str2real (double *pnum, char *str) |
int | big2str (char *str, int64_t num) |
int | str2big (int64_t *pnum, char *str) |
parse_type.h: transform number to string This file provide function to transform real and bigint to a string and conversely.
Definition in file parse_type.h.
#define PRINT_LEN 20 |
max length of the output string
Definition at line 14 of file parse_type.h.
int big2str | ( | char * | str, |
int64_t | num | ||
) |
Definition at line 47 of file parse_type.c.
int real2str | ( | char * | str, |
double | num | ||
) |
Convert a number to string
str | pointer on the output string. |
num | input number. |
Definition at line 25 of file parse_type.c.
int str2big | ( | int64_t * | pnum, |
char * | str | ||
) |
Definition at line 54 of file parse_type.c.
int str2real | ( | double * | pnum, |
char * | str | ||
) |
Convert a string to a number
pnum | pointer on the output number. |
str | input string. |
Definition at line 40 of file parse_type.c.