mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
14 lines
236 B
C
14 lines
236 B
C
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <lkmc/file_io.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
assert(argc == 2);
|
|
char *s = lkmc_file_read(argv[1]);
|
|
puts(s);
|
|
free(s);
|
|
return EXIT_SUCCESS;
|
|
}
|