blob: 140b669c8123631471f34668d5e6515ac99e4a5f [file] [log] [blame]
Lucas De Marchibe0e3232011-11-22 14:50:50 -02001#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
9int 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}