2020-12-01 14:55:16 -05:00
|
|
|
#ifndef KERNAUX_INCLUDED_CMDLINE
|
|
|
|
#define KERNAUX_INCLUDED_CMDLINE 1
|
|
|
|
|
2021-12-13 15:46:58 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-12-06 05:16:15 -05:00
|
|
|
#include <stdbool.h>
|
2020-12-01 15:22:38 -05:00
|
|
|
|
|
|
|
#define KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX 256
|
|
|
|
#define KERNAUX_CMDLINE_ERROR_MSG_SLEN_MAX \
|
|
|
|
(KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX - 1)
|
|
|
|
|
2020-12-06 05:16:15 -05:00
|
|
|
bool kernaux_cmdline_parse(
|
2020-12-01 15:22:38 -05:00
|
|
|
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 14:55:16 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|