summaryrefslogtreecommitdiffstats
path: root/kernel/code/program_radiator.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/code/program_radiator.c')
-rw-r--r--kernel/code/program_radiator.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/code/program_radiator.c b/kernel/code/program_radiator.c
new file mode 100644
index 0000000..75077da
--- /dev/null
+++ b/kernel/code/program_radiator.c
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include "radiator.h"
+
+int
+main (int argc, char *argv[])
+{
+ Radiator *r;
+ int pos;
+ char buf[1024];
+
+
+ r = radiator_open (argv[1],1);
+
+ if (!r)
+ return -1;
+
+ radiator_program(r);
+
+ return 0;
+}