|
XenevaOS
|
#include <string.h>#include <stdlib.h>#include <stdarg.h>#include <ctype.h>#include <_xeprint.h>#include <errno.h>#include <math.h>
Functions | |
| int | _ldigits (unsigned long long num, int base, int sign) |
| int | _digits (unsigned num, int base, int sign) |
| unsigned long long | _str2num (const char *string, unsigned base, int sign, int *consumed) |
| void | _lnum2str (unsigned long long num, char *string, int base, int sign) |
| void | _dbl2str (double num, char *string, int roundPlaces) |
| void | _num2str (unsigned num, char *string, int base, int sign) |
| void | _flt2str (float num, char *string, int roundPlaces) |
| double | strtod (const char *nptr, char **endptr) |
| float | strtof (const char *nptr, char **endptr) |
| int | _xeprint (char *output, int outputlen, const char *format, va_list list) |
| _xeprint – copied from XEClib implementation | |
| void _dbl2str | ( | double | num, |
| char * | string, | ||
| int | roundPlaces | ||
| ) |
| int _digits | ( | unsigned | num, |
| int | base, | ||
| int | sign | ||
| ) |
| void _flt2str | ( | float | num, |
| char * | string, | ||
| int | roundPlaces | ||
| ) |
| int _ldigits | ( | unsigned long long | num, |
| int | base, | ||
| int | sign | ||
| ) |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| void _lnum2str | ( | unsigned long long | num, |
| char * | string, | ||
| int | base, | ||
| int | sign | ||
| ) |
| void _num2str | ( | unsigned | num, |
| char * | string, | ||
| int | base, | ||
| int | sign | ||
| ) |
| unsigned long long _str2num | ( | const char * | string, |
| unsigned | base, | ||
| int | sign, | ||
| int * | consumed | ||
| ) |
| int _xeprint | ( | char * | output, |
| int | outputlen, | ||
| const char * | format, | ||
| va_list | list | ||
| ) |
_xeprint – copied from XEClib implementation
BSD 2-Clause License
Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| output | – pointer to memory buffer, where to put formatted string |
| outputLen | – output len |
| format | – formatted string |
| list | – pointer to variable argument list |
| output | – pointer to memory buffer, where to put formatted string |
| outputLen | – output len |
| format | – formatted string |
| list | – pointer to variable argument list |
| double strtod | ( | const char * | nptr, |
| char ** | endptr | ||
| ) |
| float strtof | ( | const char * | nptr, |
| char ** | endptr | ||
| ) |