Types module
Cnx provides its own typedefs for fixed-width types and typedefs for various semantic types
Typedefs
- using nullptr_t = void*
nullptr_t
makes usingNULL
to represent a null pointer (aka anullptr
) a first-class type of its own- using u8 = uint8_t
u8
is a fixed-width 8 bit unsigned integer- using u16 = uint16_t
u16
is a fixed-width 16 bit unsigned integer- using u32 = uint32_t
u32
is a fixed-width 32 bit unsigned integer- using u64 = uint64_t
u64
is a fixed-width 64 bit unsigned integer- using usize = size_t
usize
is the unsigned, platform-dependent type to represent a size- using byte = u8
- a
byte
is an 8 bit unsigned integer - using i8 = int8_t
i8
is a fixed-width 8 bit signed integer- using i16 = int16_t
i16
is a fixed-width 16 bit signed integer- using i32 = int32_t
i32
is a fixed-width 32 bit signed integer- using i64 = int64_t
i64
is a fixed-width 64 bit signed integer- using isize = ssize_t
isize
is the platform-dependent type to represent a signed size. It is the signed alternative tousize
- using f32 = float
f32
is a 32-bit floating point number- using f64 = double
f64
is a 64-bit floating point number- using cstring = char*
cstring
represents a null-terminated legacy C-style string (aka achar*
) and should be preferred when semantically referring to a string instead ofchar*
to differentiate from references to a pointer to singlechar
- using const_cstring = const char*
const_cstring
represents a const null-terminated legacy C-style string (aka aconst char*
) and should be preferred when semantically referring to a string instead ofchar*
to differentiate from references to a pointer to singleconst char
- using wcstring = wchar_t*
wcstring
represents a null-terminated legacy C-style wide string (aka awchar_t*
) and should be preferred when semantically referring to a wide string instead ofwchar_t*
to differentiate from references to a pointer to singlewchar_t
- using const_wcstring = const wchar_t*
const_wcstring
represents a const null-terminated legacy C-style wide string (aka aconst wchar_t*
) and should be preferred when semantically referring to a wide string instead ofconst wchar_t*
to differentiate from references to a pointer to singleconst wchar_t
- using char_ptr = char*
char_ptr
represents a pointer to a singlechar
and should be preferred when referring to a pointer to singlechar
overchar*
to differentiate from references to a string- using const_char_ptr = const char*
const_char_ptr
represents a pointer to a singleconst char
and should be preferred when referring to a pointer to singleconst char
overconst char*
to differentiate from references to a const string- using wchar_t_ptr = wchar_t*
wchar_t_ptr
represents a pointer to a singlewchar_t
and should be preferred when referring to a pointer to singlewchar_t
overwchar_t*
to differentiate from references to a wide string- using const_wchar_t_ptr = const wchar_t*
const_wchar_t_ptr
represents a pointer to a singleconst wchar_t
and should be preferred when referring to a pointer to singleconst wchar_t
overconst wchar_t*
to differentiate from references to a wide string
Defines
- #define nullptr
nullptr
is aNULL
pointer- #define CNX_OFORMAT_U8
u8
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U16
u16
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U32
u32
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U64
u64
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_USIZE
usize
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_UMAX
umax
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_BYTE
byte
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_I8
i8
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_I16
i16
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_I32
i32
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_I64
i64
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_ISIZE
isize
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_IMAX
imax
decimal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U8_OCT
u8
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U16_OCT
u16
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U32_OCT
u32
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U64_OCT
u64
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_USIZE_OCT
usize
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_UMAX_OCT
umax
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_BYTE_OCT
byte
octal format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U8_HEX
u8
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U16_HEX
u16
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U32_HEX
u32
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U64_HEX
u64
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_USIZE_HEX
usize
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_UMAX_HEX
umax
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_BYTE_HEX
byte
lower-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U8_HEX_UP
u8
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U16_HEX_UP
u16
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U32_HEX_UP
u32
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_U64_HEX_UP
u64
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_USIZE_HEX_UP
usize
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_UMAX_HEX_UP
umax
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_OFORMAT_BYTE_HEX_UP
byte
upper-case hex format specifier for legacy formatted output functions (printf
,fprintf
, etc)- #define CNX_IFORMAT_U8
u8
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U16
u16
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U32
u32
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U64
u64
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_USIZE
usize
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_UMAX
umax
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_BYTE
byte
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_I8
i8
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_I16
i16
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_I32
i32
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_I64
i64
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_ISIZE
isize
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_IMAX
imax
decimal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U8_OCT
u8
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U16_OCT
u16
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U32_OCT
u32
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U64_OCT
u64
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_USIZE_OCT
usize
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_UMAX_OCT
umax
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_BYTE_OCT
byte
octal format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U8_HEX
u8
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U16_HEX
u16
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U32_HEX
u32
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U64_HEX
u64
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_USIZE_HEX
usize
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_UMAX_HEX
umax
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_BYTE_HEX
byte
lower-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U8_HEX_UP
u8
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U16_HEX_UP
u16
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U32_HEX_UP
u32
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_U64_HEX_UP
u64
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_UMAX_HEX_UP
umax
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define CNX_IFORMAT_BYTE_HEX_UP
byte
upper-case hex format specifier for legacy formatted input functions (scanf
,fscanf
, etc)- #define cnx_max_u8
- Maximum value of a
u8
- #define cnx_max_u16
- Maximum value of a
u16
- #define cnx_max_u32
- Maximum value of a
u32
- #define cnx_max_u64
- Maximum value of a
u64
- #define cnx_max_usize
- Maximum value of a
usize
- #define cnx_max_i8
- Maximum value of an
i8
- #define cnx_max_i16
- Maximum value of an
i16
- #define cnx_max_i32
- Maximum value of an
i32
- #define cnx_max_i64
- Maximum value of an
i64
- #define cnx_max_isize
- Maximum value of an
isize
- #define cnx_max_f32
- Maximum value of an
f32
- #define cnx_max_f64
- Maximum value of an
f64
- #define cnx_min_u8
- Minimum value of a
u8
- #define cnx_min_u16
- Minimum value of a
u16
- #define cnx_min_u32
- Minimum value of a
u32
- #define cnx_min_u64
- Minimum value of a
u64
- #define cnx_min_usize
- Minimum value of a
usize
- #define cnx_min_i8
- Minimum value of an
i8
- #define cnx_min_i16
- Minimum value of an
i16
- #define cnx_min_i32
- Minimum value of an
i32
- #define cnx_min_i64
- Minimum value of an
i64
- #define cnx_min_isize
- Minimum value of an
isize
- #define cnx_min_f32
- Minimum value of an
f32
- #define cnx_min_f64
- Minimum value of an
f64
- #define cnx_min_diff_f32
- Minimum discernible difference value of an
f32
- #define cnx_min_diff_f64
- Minimum discernible difference value of an
f64
- #define cnx_max_value(T)
- Returns the maximum possible value of the given type.
- #define cnx_min_value(T)
- Returns the minimum possible value of the given type.
Typedef documentation
typedef void* nullptr_t
#include <include/Cnx/BasicTypes.h>
nullptr_t
makes using NULL
to represent a null pointer (aka a nullptr
) a first-class type of its own
typedef uint8_t u8
#include <include/Cnx/BasicTypes.h>
u8
is a fixed-width 8 bit unsigned integer
typedef uint16_t u16
#include <include/Cnx/BasicTypes.h>
u16
is a fixed-width 16 bit unsigned integer
typedef uint32_t u32
#include <include/Cnx/BasicTypes.h>
u32
is a fixed-width 32 bit unsigned integer
typedef uint64_t u64
#include <include/Cnx/BasicTypes.h>
u64
is a fixed-width 64 bit unsigned integer
typedef size_t usize
#include <include/Cnx/BasicTypes.h>
usize
is the unsigned, platform-dependent type to represent a size
typedef u8 byte
#include <include/Cnx/BasicTypes.h>
a byte
is an 8 bit unsigned integer
typedef int8_t i8
#include <include/Cnx/BasicTypes.h>
i8
is a fixed-width 8 bit signed integer
typedef int16_t i16
#include <include/Cnx/BasicTypes.h>
i16
is a fixed-width 16 bit signed integer
typedef int32_t i32
#include <include/Cnx/BasicTypes.h>
i32
is a fixed-width 32 bit signed integer
typedef int64_t i64
#include <include/Cnx/BasicTypes.h>
i64
is a fixed-width 64 bit signed integer
typedef ssize_t isize
#include <include/Cnx/BasicTypes.h>
isize
is the platform-dependent type to represent a signed size. It is the signed alternative to usize
typedef float f32
#include <include/Cnx/BasicTypes.h>
f32
is a 32-bit floating point number
typedef double f64
#include <include/Cnx/BasicTypes.h>
f64
is a 64-bit floating point number
typedef char* cstring
#include <include/Cnx/BasicTypes.h>
cstring
represents a null-terminated legacy C-style string (aka a char*
) and should be preferred when semantically referring to a string instead of char*
to differentiate from references to a pointer to single char
typedef const char* const_cstring
#include <include/Cnx/BasicTypes.h>
const_cstring
represents a const null-terminated legacy C-style string (aka a const char*
) and should be preferred when semantically referring to a string instead of char*
to differentiate from references to a pointer to single const char
typedef wchar_t* wcstring
#include <include/Cnx/BasicTypes.h>
wcstring
represents a null-terminated legacy C-style wide string (aka a wchar_t*
) and should be preferred when semantically referring to a wide string instead of wchar_t*
to differentiate from references to a pointer to single wchar_t
typedef const wchar_t* const_wcstring
#include <include/Cnx/BasicTypes.h>
const_wcstring
represents a const null-terminated legacy C-style wide string (aka a const wchar_t*
) and should be preferred when semantically referring to a wide string instead of const wchar_t*
to differentiate from references to a pointer to single const wchar_t
typedef char* char_ptr
#include <include/Cnx/BasicTypes.h>
char_ptr
represents a pointer to a single char
and should be preferred when referring to a pointer to single char
over char*
to differentiate from references to a string
typedef const char* const_char_ptr
#include <include/Cnx/BasicTypes.h>
const_char_ptr
represents a pointer to a single const char
and should be preferred when referring to a pointer to single const char
over const char*
to differentiate from references to a const string
typedef wchar_t* wchar_t_ptr
#include <include/Cnx/BasicTypes.h>
wchar_t_ptr
represents a pointer to a single wchar_t
and should be preferred when referring to a pointer to single wchar_t
over wchar_t*
to differentiate from references to a wide string
typedef const wchar_t* const_wchar_t_ptr
#include <include/Cnx/BasicTypes.h>
const_wchar_t_ptr
represents a pointer to a single const wchar_t
and should be preferred when referring to a pointer to single const wchar_t
over const wchar_t*
to differentiate from references to a wide string
Define documentation
#define nullptr
#include <include/Cnx/BasicTypes.h>
nullptr
is a NULL
pointer
#define CNX_OFORMAT_U8
#include <include/Cnx/BasicTypes.h>
u8
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U16
#include <include/Cnx/BasicTypes.h>
u16
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U32
#include <include/Cnx/BasicTypes.h>
u32
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U64
#include <include/Cnx/BasicTypes.h>
u64
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_USIZE
#include <include/Cnx/BasicTypes.h>
usize
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_UMAX
#include <include/Cnx/BasicTypes.h>
umax
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_BYTE
#include <include/Cnx/BasicTypes.h>
byte
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_I8
#include <include/Cnx/BasicTypes.h>
i8
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_I16
#include <include/Cnx/BasicTypes.h>
i16
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_I32
#include <include/Cnx/BasicTypes.h>
i32
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_I64
#include <include/Cnx/BasicTypes.h>
i64
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_ISIZE
#include <include/Cnx/BasicTypes.h>
isize
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_IMAX
#include <include/Cnx/BasicTypes.h>
imax
decimal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U8_OCT
#include <include/Cnx/BasicTypes.h>
u8
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U16_OCT
#include <include/Cnx/BasicTypes.h>
u16
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U32_OCT
#include <include/Cnx/BasicTypes.h>
u32
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U64_OCT
#include <include/Cnx/BasicTypes.h>
u64
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_USIZE_OCT
#include <include/Cnx/BasicTypes.h>
usize
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_UMAX_OCT
#include <include/Cnx/BasicTypes.h>
umax
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_BYTE_OCT
#include <include/Cnx/BasicTypes.h>
byte
octal format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U8_HEX
#include <include/Cnx/BasicTypes.h>
u8
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U16_HEX
#include <include/Cnx/BasicTypes.h>
u16
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U32_HEX
#include <include/Cnx/BasicTypes.h>
u32
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U64_HEX
#include <include/Cnx/BasicTypes.h>
u64
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_USIZE_HEX
#include <include/Cnx/BasicTypes.h>
usize
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_UMAX_HEX
#include <include/Cnx/BasicTypes.h>
umax
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_BYTE_HEX
#include <include/Cnx/BasicTypes.h>
byte
lower-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U8_HEX_UP
#include <include/Cnx/BasicTypes.h>
u8
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U16_HEX_UP
#include <include/Cnx/BasicTypes.h>
u16
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U32_HEX_UP
#include <include/Cnx/BasicTypes.h>
u32
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_U64_HEX_UP
#include <include/Cnx/BasicTypes.h>
u64
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_USIZE_HEX_UP
#include <include/Cnx/BasicTypes.h>
usize
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_UMAX_HEX_UP
#include <include/Cnx/BasicTypes.h>
umax
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_OFORMAT_BYTE_HEX_UP
#include <include/Cnx/BasicTypes.h>
byte
upper-case hex format specifier for legacy formatted output functions (printf
, fprintf
, etc)
#define CNX_IFORMAT_U8
#include <include/Cnx/BasicTypes.h>
u8
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U16
#include <include/Cnx/BasicTypes.h>
u16
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U32
#include <include/Cnx/BasicTypes.h>
u32
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U64
#include <include/Cnx/BasicTypes.h>
u64
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_USIZE
#include <include/Cnx/BasicTypes.h>
usize
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_UMAX
#include <include/Cnx/BasicTypes.h>
umax
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_BYTE
#include <include/Cnx/BasicTypes.h>
byte
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_I8
#include <include/Cnx/BasicTypes.h>
i8
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_I16
#include <include/Cnx/BasicTypes.h>
i16
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_I32
#include <include/Cnx/BasicTypes.h>
i32
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_I64
#include <include/Cnx/BasicTypes.h>
i64
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_ISIZE
#include <include/Cnx/BasicTypes.h>
isize
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_IMAX
#include <include/Cnx/BasicTypes.h>
imax
decimal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U8_OCT
#include <include/Cnx/BasicTypes.h>
u8
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U16_OCT
#include <include/Cnx/BasicTypes.h>
u16
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U32_OCT
#include <include/Cnx/BasicTypes.h>
u32
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U64_OCT
#include <include/Cnx/BasicTypes.h>
u64
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_USIZE_OCT
#include <include/Cnx/BasicTypes.h>
usize
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_UMAX_OCT
#include <include/Cnx/BasicTypes.h>
umax
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_BYTE_OCT
#include <include/Cnx/BasicTypes.h>
byte
octal format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U8_HEX
#include <include/Cnx/BasicTypes.h>
u8
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U16_HEX
#include <include/Cnx/BasicTypes.h>
u16
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U32_HEX
#include <include/Cnx/BasicTypes.h>
u32
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U64_HEX
#include <include/Cnx/BasicTypes.h>
u64
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_USIZE_HEX
#include <include/Cnx/BasicTypes.h>
usize
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_UMAX_HEX
#include <include/Cnx/BasicTypes.h>
umax
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_BYTE_HEX
#include <include/Cnx/BasicTypes.h>
byte
lower-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U8_HEX_UP
#include <include/Cnx/BasicTypes.h>
u8
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U16_HEX_UP
#include <include/Cnx/BasicTypes.h>
u16
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U32_HEX_UP
#include <include/Cnx/BasicTypes.h>
u32
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_U64_HEX_UP
#include <include/Cnx/BasicTypes.h>
u64
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_UMAX_HEX_UP
#include <include/Cnx/BasicTypes.h>
umax
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define CNX_IFORMAT_BYTE_HEX_UP
#include <include/Cnx/BasicTypes.h>
byte
upper-case hex format specifier for legacy formatted input functions (scanf
, fscanf
, etc)
#define cnx_max_u8
#include <include/Cnx/BasicTypes.h>
Maximum value of a u8
#define cnx_max_u16
#include <include/Cnx/BasicTypes.h>
Maximum value of a u16
#define cnx_max_u32
#include <include/Cnx/BasicTypes.h>
Maximum value of a u32
#define cnx_max_u64
#include <include/Cnx/BasicTypes.h>
Maximum value of a u64
#define cnx_max_usize
#include <include/Cnx/BasicTypes.h>
Maximum value of a usize
#define cnx_max_i8
#include <include/Cnx/BasicTypes.h>
Maximum value of an i8
#define cnx_max_i16
#include <include/Cnx/BasicTypes.h>
Maximum value of an i16
#define cnx_max_i32
#include <include/Cnx/BasicTypes.h>
Maximum value of an i32
#define cnx_max_i64
#include <include/Cnx/BasicTypes.h>
Maximum value of an i64
#define cnx_max_isize
#include <include/Cnx/BasicTypes.h>
Maximum value of an isize
#define cnx_max_f32
#include <include/Cnx/BasicTypes.h>
Maximum value of an f32
#define cnx_max_f64
#include <include/Cnx/BasicTypes.h>
Maximum value of an f64
#define cnx_min_u8
#include <include/Cnx/BasicTypes.h>
Minimum value of a u8
#define cnx_min_u16
#include <include/Cnx/BasicTypes.h>
Minimum value of a u16
#define cnx_min_u32
#include <include/Cnx/BasicTypes.h>
Minimum value of a u32
#define cnx_min_u64
#include <include/Cnx/BasicTypes.h>
Minimum value of a u64
#define cnx_min_usize
#include <include/Cnx/BasicTypes.h>
Minimum value of a usize
#define cnx_min_i8
#include <include/Cnx/BasicTypes.h>
Minimum value of an i8
#define cnx_min_i16
#include <include/Cnx/BasicTypes.h>
Minimum value of an i16
#define cnx_min_i32
#include <include/Cnx/BasicTypes.h>
Minimum value of an i32
#define cnx_min_i64
#include <include/Cnx/BasicTypes.h>
Minimum value of an i64
#define cnx_min_isize
#include <include/Cnx/BasicTypes.h>
Minimum value of an isize
#define cnx_min_f32
#include <include/Cnx/BasicTypes.h>
Minimum value of an f32
#define cnx_min_f64
#include <include/Cnx/BasicTypes.h>
Minimum value of an f64
#define cnx_min_diff_f32
#include <include/Cnx/BasicTypes.h>
Minimum discernible difference value of an f32
#define cnx_min_diff_f64
#include <include/Cnx/BasicTypes.h>
Minimum discernible difference value of an f64
#define cnx_max_value(T)
#include <include/Cnx/BasicTypes.h>
Returns the maximum possible value of the given type.
Parameters | |
---|---|
T | - The type to get the maximum value for |
Returns | the maximum value |
#define cnx_min_value(T)
#include <include/Cnx/BasicTypes.h>
Returns the minimum possible value of the given type.
Parameters | |
---|---|
T | - The type to get the minimum value for |
Returns | the minimum value |