explugin.c 237 B

123456789101112131415161718
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <clish/plugin.h>
  4. CLISH_PLUGIN_SYM(explugin_fn)
  5. {
  6. printf("explugin: Hello world\n");
  7. return 0;
  8. }
  9. CLISH_PLUGIN_INIT
  10. {
  11. clish_plugin_add_sym(plugin, explugin_fn, "hello");
  12. return 0;
  13. }