diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:56:46 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:56:46 +0200 |
commit | a66c9199efe1b215c352e0cf56bfe7a0d1f01e23 (patch) | |
tree | 30f030ad805b6efc37c3fa18d91f2c58e62af1e5 /man | |
parent | 88a5a75f7620ec29143e73493143bca4b8800225 (diff) |
Fix usage() example
Diffstat (limited to 'man')
-rw-r--r-- | man/usage.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/man/usage.3 b/man/usage.3 index fcd49bf..92b9b43 100644 --- a/man/usage.3 +++ b/man/usage.3 @@ -29,13 +29,14 @@ be provided to the example executable. #include <stdlib.h> #include <errors.h> -#include <macros.h> +#include <macros.h> /* For lengthof() */ +#include <mbstring.h> /* For U8() */ #include <optparse.h> static const struct op_option opts[] = { - {'a', nullptr, OPT_NONE}, - {'b', nullptr, OPT_NONE}, - {'h', nullptr, OPT_NONE}, + {'a', U8(nullptr), OPT_NONE}, + {'b', U8(nullptr), OPT_NONE}, + {'h', U8(nullptr), OPT_NONE}, }; int |