From fa128b7b255760540ea95c7c6855de6ce7e10382 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Wed, 16 Dec 2020 16:28:06 +0100 Subject: Update copt_api.md --- docs/copt_api.md | 8 +++++--- 1 file 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 #include "stc/copt.h" @@ -79,4 +81,4 @@ int main(int argc, char *argv[]) { } return 0; } -``` \ No newline at end of file +``` -- cgit v1.2.3