New doc system done for core
[io.git] / libs / basekit / source / MainArgs.h
blob3f0cb11ead4308cfce0360ec8e0e1cd63162d115
1 //metadoc MainArgs copyright Steve Dekorte 2002
2 //metadoc MainArgs license BSD revised
3 /*metadoc MainArgs description
4 Structure for copying and storing command line arguments.")
5 */
7 #ifndef MAINARGS_DEFINED
8 #define MAINARGS_DEFINED 1
10 #include "Common.h"
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 typedef struct
18 int argc;
19 const char **argv;
20 } MainArgs;
22 BASEKIT_API MainArgs *MainArgs_new(void);
23 BASEKIT_API void MainArgs_free(MainArgs *self);
25 BASEKIT_API void MainArgs_argc_argv_(MainArgs *self, int argc, const char **argv);
26 #define MainArgs_argCount(self) self->argc
27 #define MainArgs_argAt_(self, index) self->argv[index]
29 #ifdef __cplusplus
31 #endif
32 #endif