12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef _lub_argv_h
- #define _lub_argv_h
- #include <stddef.h>
- #include "c_decl.h"
- #include "types.h"
- _BEGIN_C_DECL
- typedef struct lub_argv_s lub_argv_t;
- lub_argv_t *lub_argv_new(
-
- const char *line,
-
- size_t offset);
- void lub_argv_delete(lub_argv_t * instance);
- unsigned lub_argv__get_count(const lub_argv_t * instance);
- const char *lub_argv__get_arg(const lub_argv_t * instance, unsigned index);
- size_t lub_argv__get_offset(const lub_argv_t * instance, unsigned index);
- bool_t lub_argv__get_quoted(const lub_argv_t * instance, unsigned index);
- void lub_argv__set_arg(lub_argv_t * instance, unsigned index, const char *arg);
- char **lub_argv__get_argv(const lub_argv_t * instance, const char *argv0);
- void lub_argv__free_argv(char **argv);
- char *lub_argv__get_line(const lub_argv_t * instance);
- void lub_argv_add(lub_argv_t * instance, const char *text);
- _END_C_DECL
- #endif
|