1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00
libkernaux/include/kernaux/ntoa.h
2022-01-24 21:52:12 +05:00

44 lines
1 KiB
C

#ifndef KERNAUX_INCLUDED_NTOA
#define KERNAUX_INCLUDED_NTOA
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
// "1111111111111111111111111111111111111111111111111111111111111111"
#define KERNAUX_UTOA_BUFFER_SIZE 65
// "111111111111111111111111111111111111111111111111111111111111111"
// "-1000000000000000000000000000000000000000000000000000000000000000"
#define KERNAUX_ITOA_BUFFER_SIZE 66
// "18446744073709551615"
#define KERNAUX_UTOA10_BUFFER_SIZE 21
// "9223372036854775807"
// "-9223372036854775808"
#define KERNAUX_ITOA10_BUFFER_SIZE 21
// "ffffffffffffffff"
#define KERNAUX_UTOA16_BUFFER_SIZE 17
// "7fffffffffffffff"
// "-8000000000000000"
#define KERNAUX_ITOA16_BUFFER_SIZE 18
char *kernaux_utoa(uint64_t value, char *buffer, int base);
char *kernaux_itoa(int64_t value, char *buffer, int base);
void kernaux_utoa10(uint64_t value, char *buffer);
void kernaux_itoa10(int64_t value, char *buffer);
void kernaux_utoa16(uint64_t value, char *buffer);
void kernaux_itoa16(int64_t value, char *buffer);
#ifdef __cplusplus
}
#endif
#endif