From 5c8e4561941ca8897d67b7261b3264199182002b Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 17 Apr 2008 00:02:12 -0400 Subject: [PATCH] More files needed --- mashrom.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mashrom.c diff --git a/mashrom.c b/mashrom.c new file mode 100644 index 0000000..5c252fe --- /dev/null +++ b/mashrom.c @@ -0,0 +1,14 @@ +void main(int argc, char** argv) +{ + int n = 1024; + int i; + if (argc >= 2) + n = atoi(argv[1]); + for (i = 0; i < n; i++) + { + unsigned char c; + if (read(0, &c, 1) < 1) + c = 0; + printf("%02x\n", c); + } +} \ No newline at end of file -- 2.43.0