1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-27 11:14:42 -05:00
libkernaux/include/kernaux/cmdline.h

28 lines
503 B
C

#ifndef KERNAUX_INCLUDED_CMDLINE
#define KERNAUX_INCLUDED_CMDLINE 1
#include <stdbool.h>
#define KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX 256
#define KERNAUX_CMDLINE_ERROR_MSG_SLEN_MAX \
(KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX - 1)
#ifdef __cplusplus
extern "C" {
#endif
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
);
#ifdef __cplusplus
}
#endif
#endif