modload.cpp 284 B

123456789101112131415
  1. #include <serenity.h>
  2. #include <string.h>
  3. int main(int argc, char** argv)
  4. {
  5. (void)argc;
  6. (void)argv;
  7. const char* path = "/TestModule.o";
  8. int rc = module_load(path, strlen(path));
  9. if (rc < 0) {
  10. perror("module_load");
  11. return 1;
  12. }
  13. return 0;
  14. }