blob: 2478aa01ebc4488aa4820b4c0d5835e6c0491a39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <serenity.h>
#include <string.h>
int main(int argc, char** argv)
{
if (argc != 2) {
printf("usage: %s <module.o>\n", argv[0]);
return 0;
}
const char* path = argv[1];
int rc = module_load(path, strlen(path));
if (rc < 0) {
perror("module_load");
return 1;
}
return 0;
}
|