NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typeconversion.c File Reference
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "build_config.h"
#include "maths.h"
#include "typeconversion.h"
Include dependency graph for typeconversion.c:

Macros

#define white_space(c)   ((c) == ' ' || (c) == '\t')
 
#define valid_digit(c)   ((c) >= '0' && (c) <= '9')
 

Functions

void ui2a (unsigned int num, unsigned int base, int uc, char *bf)
 
void i2a (int num, char *bf)
 
char a2i (char ch, const char **src, int base, int *nump)
 
char * itoa (int i, char *a, int base)
 
char * ftoa (float x, char *floatString)
 
float fastA2F (const char *p)
 

Macro Definition Documentation

#define valid_digit (   c)    ((c) >= '0' && (c) <= '9')
#define white_space (   c)    ((c) == ' ' || (c) == '\t')

Function Documentation

char a2i ( char  ch,
const char **  src,
int  base,
int *  nump 
)
float fastA2F ( const char *  p)
char* ftoa ( float  x,
char *  floatString 
)

Here is the call graph for this function:

void i2a ( int  num,
char *  bf 
)

Here is the call graph for this function:

char* itoa ( int  i,
char *  a,
int  base 
)
void ui2a ( unsigned int  num,
unsigned int  base,
int  uc,
char *  bf 
)