Get rid of unnecessary barrier. Improve comment.
[pintos-anon] / grading / vm / pt-big-stk-obj.c
1 #include <stdio.h>
2 #include <string.h>
3 #include "../lib/arc4.h"
4 #include "../lib/cksum.h"
5
6 int
7 main (void) 
8 {
9   char stk_obj[65536];
10   struct arc4 arc4;
11
12   printf ("(pt-big-stk-obj) begin\n");
13   arc4_init (&arc4, "foobar", 6);
14   memset (stk_obj, 0, sizeof stk_obj);
15   arc4_crypt (&arc4, stk_obj, sizeof stk_obj);
16   printf ("(pt-big-stk-obj) cksum: %lu\n", cksum (stk_obj, sizeof stk_obj));
17   printf ("(pt-big-stk-obj) end\n");
18   return 0;
19 }