ass5a finished
authorMart Lubbers <mart@martlubbers.net>
Thu, 12 Mar 2015 09:37:15 +0000 (10:37 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 12 Mar 2015 09:37:15 +0000 (10:37 +0100)
ass5a/mart/sws1-assignment5-s4109503-s4202015/exercise2c.c

index 3797073..67fc950 100644 (file)
@@ -2,9 +2,11 @@
 
 void function_b(void)
 {
-       char buffer[4];
+       char buffer[4] = {'A', 'A', 'A', 'A'};
+       *((size_t *)buffer+3) = *((size_t *)buffer+7);
        fprintf(stdout, "Executing function_b\n");
 }      
+
 void function_a(void)
 {
        int beacon = 0xa0b1c2d3;