]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
More files needed
authorJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 17 Apr 2008 04:02:12 +0000 (00:02 -0400)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 17 Apr 2008 04:02:12 +0000 (00:02 -0400)
mashrom.c [new file with mode: 0644]

diff --git a/mashrom.c b/mashrom.c
new file mode 100644 (file)
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
This page took 0.025569 seconds and 4 git commands to generate.