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:
parent
b28c4327e7
commit
9636303f86
11 changed files with 38 additions and 37 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue