Lucas De Marchi | be0e323 | 2011-11-22 14:50:50 -0200 | [diff] [blame^] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
3 | #include <stddef.h> | ||||
4 | #include <errno.h> | ||||
5 | #include <unistd.h> | ||||
6 | #include <libkmod.h> | ||||
7 | |||||
8 | |||||
9 | int main(int argc, char *argv[]) | ||||
10 | { | ||||
11 | struct kmod_ctx *ctx; | ||||
12 | |||||
13 | ctx = kmod_new(); | ||||
14 | if (ctx == NULL) | ||||
15 | exit(EXIT_FAILURE); | ||||
16 | |||||
17 | printf("libkmod version %s\n", VERSION); | ||||
18 | |||||
19 | kmod_unref(ctx); | ||||
20 | |||||
21 | return EXIT_SUCCESS; | ||||
22 | } |