NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typeconversion.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Ninjaflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Ninjaflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #pragma once
18 
19 void uli2a(unsigned long int num, unsigned int base, int uc, char *bf);
20 void li2a(long num, char *bf);
21 void ui2a(unsigned int num, unsigned int base, int uc, char *bf);
22 void i2a(int num, char *bf);
23 char a2i(char ch, const char **src, int base, int *nump);
24 
25 #define FTOA_BUFFER_SIZE 13
26 
27 char *ftoa(float x, char *floatString);
28 float fastA2F(const char *p);
29 
30 #ifndef HAVE_ITOA_FUNCTION
31 char *itoa(int i, char *a, int r);
32 #endif
float fastA2F(const char *p)
Definition: typeconversion.c:207
char * ftoa(float x, char *floatString)
Definition: typeconversion.c:148
void li2a(long num, char *bf)
void i2a(int num, char *bf)
Definition: typeconversion.c:73
char a2i(char ch, const char **src, int base, int *nump)
Definition: typeconversion.c:94
char * itoa(int i, char *a, int r)
Definition: typeconversion.c:134
void uli2a(unsigned long int num, unsigned int base, int uc, char *bf)
void ui2a(unsigned int num, unsigned int base, int uc, char *bf)
Definition: typeconversion.c:55