1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-24 15:55:41 -05:00

Define constants

This commit is contained in:
Alex Kotov 2022-01-24 21:30:58 +05:00
parent ed5ba41260
commit c86a1807b1
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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;