diff options
| author | Tyge Løvset <[email protected]> | 2020-12-16 16:28:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-16 16:28:06 +0100 |
| commit | fa128b7b255760540ea95c7c6855de6ce7e10382 (patch) | |
| tree | 621ec6a87ee5304487df43721212f7ffa8b84e81 | |
| parent | 780a193a2920992df7fc203a40bfbfe1e5150e8f (diff) | |
| download | STC-modified-fa128b7b255760540ea95c7c6855de6ce7e10382.tar.gz STC-modified-fa128b7b255760540ea95c7c6855de6ce7e10382.zip | |
Update copt_api.md
| -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 +``` |
