compile_ok-const-arg.c 302 B

12345678910111213
  1. #include <ccan/opt/opt.h>
  2. #include <ccan/opt/opt.c>
  3. #include <ccan/opt/helpers.c>
  4. #include <ccan/opt/parse.c>
  5. #include <ccan/opt/usage.c>
  6. int main(int argc, char *argv[])
  7. {
  8. opt_register_noarg("-v", opt_version_and_exit,
  9. (const char *)"1.2.3",
  10. (const char *)"Print version");
  11. return 0;
  12. }