hackrf/firmware/common/rad1o_itoa.h
2022-01-09 23:27:00 +01:00

12 lines
400 B
C

#ifndef _ITOA_H
#define _ITOA_H 1
#define F_ZEROS (1<<0) // Print with leading zeros
#define F_LONG (1<<1) // Print with leading spaces
#define F_SPLUS (1<<2) // Prefix '+' on positive number
#define F_SSPACE (1<<3) // Prefix ' ' on positive numbers
#define F_HEX (1<<4) // Print as (fixed-width) hex number
const char* IntToStr(int num, unsigned int mxlen, char flag);
#endif /* _ITOA_H */