libkernaux/include/kernaux/cmdline.h

32 lines
530 B
C
Raw Normal View History

2020-12-01 19:55:16 +00:00
#ifndef KERNAUX_INCLUDED_CMDLINE
2021-12-20 06:17:53 +00:00
#define KERNAUX_INCLUDED_CMDLINE
2020-12-01 19:55:16 +00:00
2021-12-13 20:46:58 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2022-06-27 14:46:29 +00:00
#include <kernaux/generic/file.h>
2020-12-06 10:16:15 +00:00
#include <stdbool.h>
2021-12-16 15:26:16 +00:00
#include <stddef.h>
2020-12-01 20:22:38 +00:00
#define KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX 256
#define KERNAUX_CMDLINE_ERROR_MSG_SLEN_MAX \
(KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX - 1)
bool kernaux_cmdline(
2020-12-01 20:22:38 +00:00
const char *cmdline,
char *error_msg,
2021-12-16 15:26:16 +00:00
size_t *argc,
2020-12-01 20:22:38 +00:00
char **argv,
char *buffer,
2022-06-27 16:30:47 +00:00
size_t arg_count_max,
2022-01-21 21:42:54 +00:00
size_t buffer_size
2020-12-01 20:22:38 +00:00
);
2020-12-01 19:55:16 +00:00
#ifdef __cplusplus
}
#endif
#endif