1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-24 15:55:41 -05:00
libkernaux/include/kernaux/cmdline.h

30 lines
503 B
C
Raw Normal View History

2020-12-02 00:55:16 +05:00
#ifndef KERNAUX_INCLUDED_CMDLINE
2021-12-20 11:17:53 +05:00
#define KERNAUX_INCLUDED_CMDLINE
2020-12-02 00:55:16 +05:00
2021-12-14 01:46:58 +05:00
#ifdef __cplusplus
extern "C" {
#endif
2020-12-06 15:16:15 +05:00
#include <stdbool.h>
2021-12-16 20:26:16 +05:00
#include <stddef.h>
2020-12-02 01: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 15:16:15 +05:00
bool kernaux_cmdline_parse(
2020-12-02 01:22:38 +05:00
const char *cmdline,
char *error_msg,
2021-12-16 20:26:16 +05:00
size_t *argc,
2020-12-02 01:22:38 +05:00
char **argv,
char *buffer,
2021-12-16 20:26:16 +05:00
size_t argv_count_max,
size_t arg_size_max
2020-12-02 01:22:38 +05:00
);
2020-12-02 00:55:16 +05:00
#ifdef __cplusplus
}
#endif
#endif