libkernaux/include/kernaux/cmdline.h

29 lines
518 B
C
Raw Normal View History

2020-12-01 19:55:16 +00:00
#ifndef KERNAUX_INCLUDED_CMDLINE
#define KERNAUX_INCLUDED_CMDLINE 1
2020-12-01 20:22:38 +00:00
#include <kernaux/stdlib.h>
#define KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX 256
#define KERNAUX_CMDLINE_ERROR_MSG_SLEN_MAX \
(KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX - 1)
2020-12-01 19:55:16 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2020-12-01 20:22:38 +00:00
kernaux_bool kernaux_cmdline_parse(
const char *cmdline,
char *error_msg,
unsigned int *argc,
char **argv,
char *buffer,
unsigned int argv_count_max,
unsigned int arg_size_max
);
2020-12-01 19:55:16 +00:00
#ifdef __cplusplus
}
#endif
#endif