|
MentOS
0.8.0
The Mentoring Operating System
|
Declare the functions required to turn double values into a string. More...
Go to the source code of this file.
Functions | |
| void | ecvtbuf (double arg, int chars, int *decpt, int *sign, char *buf, unsigned buf_size) |
Thif function transforms value into a string of digits inside buf, representing the whole part followed by the decimal part. More... | |
| void | fcvtbuf (double arg, int decimals, int *decpt, int *sign, char *buf, unsigned buf_size) |
Thif function transforms value into a string of digits inside buf, representing the whole part followed by the decimal part. More... | |
Declare the functions required to turn double values into a string.
| void ecvtbuf | ( | double | arg, |
| int | chars, | ||
| int * | decpt, | ||
| int * | sign, | ||
| char * | buf, | ||
| unsigned | buf_size | ||
| ) |
Thif function transforms value into a string of digits inside buf, representing the whole part followed by the decimal part.
For instance, 512.765 will result in: decpt = 3 sign = 0 buf = "512765"
| arg | The argument to turn into string. |
| chars | The total number of digits. |
| decpt | The position of the decimal point. |
| sign | The sign of the number. |
| buf | Buffer where the digits should be placed. |
| buf_size | Dimension of the buffer. |
| void fcvtbuf | ( | double | arg, |
| int | decimals, | ||
| int * | decpt, | ||
| int * | sign, | ||
| char * | buf, | ||
| unsigned | buf_size | ||
| ) |
Thif function transforms value into a string of digits inside buf, representing the whole part followed by the decimal part.
For instance, 512.765 will result in: decpt = 3 sign = 0 buf = "512765"
| arg | The argument to turn into string. |
| decimals | The total number of digits to write after the decimal point. |
| decpt | The position of the decimal point. |
| sign | The sign of the number. |
| buf | Buffer where the digits should be placed. |
| buf_size | Dimension of the buffer. |