1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-08-15 11:00:07 -04:00

Use size_t instead of unsigned ints

This commit is contained in:
Alex Kotov 2021-12-16 20:26:16 +05:00
parent b28c4327e7
commit 9636303f86
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
11 changed files with 38 additions and 37 deletions

View file

@ -3,15 +3,15 @@
#include <assert.h>
#include <string.h>
static const unsigned int ARGV_COUNT_MAX = 100;
static const unsigned int ARG_SIZE_MAX = 4096;
static const size_t ARGV_COUNT_MAX = 100;
static const size_t ARG_SIZE_MAX = 4096;
static const char *const cmdline = "foo bar\\ baz \"car cdr\"";
int main()
{
char error_msg[KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX];
unsigned int argc;
size_t argc;
char *argv[ARGV_COUNT_MAX];
char buffer[ARGV_COUNT_MAX * ARG_SIZE_MAX];