diff options
| -rw-r--r-- | docs/copt_api.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/copt_api.md b/docs/copt_api.md index 819ac7b3..2ced17ce 100644 --- a/docs/copt_api.md +++ b/docs/copt_api.md @@ -24,11 +24,13 @@ typedef struct { int has_arg; int val; } copt_long_t; + +const copt_t copt_inits; ``` ## Methods -``` +```c copt_t copt_init(void); int copt_get(copt_t *opt, int argc, char *argv[], const char *shortopts, const copt_long_t *longopts); @@ -36,7 +38,7 @@ int copt_get(copt_t *opt, int argc, char *argv[], ## Example -``` +```c #include <stdio.h> #include "stc/copt.h" @@ -79,4 +81,4 @@ int main(int argc, char *argv[]) { } return 0; } -```
\ No newline at end of file +``` |
