mirror of
https://github.com/tailix/libkernaux.git
synced 2025-02-24 15:55:41 -05:00
Define constants
This commit is contained in:
parent
ed5ba41260
commit
c86a1807b1
2 changed files with 7 additions and 8 deletions
|
@ -7,11 +7,12 @@ extern "C" {
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
// TODO: define
|
||||
#define KERNAUX_UTOA_BUFFER_SIZE (0/0)
|
||||
// "1111111111111111111111111111111111111111111111111111111111111111"
|
||||
#define KERNAUX_UTOA_BUFFER_SIZE 65
|
||||
|
||||
// TODO: define
|
||||
#define KERNAUX_ITOA_BUFFER_SIZE (0/0)
|
||||
// "111111111111111111111111111111111111111111111111111111111111111"
|
||||
// "-1000000000000000000000000000000000000000000000000000000000000000"
|
||||
#define KERNAUX_ITOA_BUFFER_SIZE 66
|
||||
|
||||
// "18446744073709551615"
|
||||
#define KERNAUX_UTOA10_BUFFER_SIZE 21
|
||||
|
|
|
@ -365,8 +365,7 @@ static const struct {
|
|||
int main()
|
||||
{
|
||||
{
|
||||
// TODO: replace 1000 with KERNAUX_UTOA_BUFFER_SIZE
|
||||
char buffer[1000];
|
||||
char buffer[KERNAUX_UTOA_BUFFER_SIZE];
|
||||
|
||||
for (
|
||||
size_t index = 0;
|
||||
|
@ -389,8 +388,7 @@ int main()
|
|||
}
|
||||
|
||||
{
|
||||
// TODO: replace 1000 with KERNAUX_ITOA_BUFFER_SIZE
|
||||
char buffer[1000];
|
||||
char buffer[KERNAUX_ITOA_BUFFER_SIZE];
|
||||
|
||||
for (
|
||||
size_t index = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue