From: Mart Lubbers Date: Thu, 12 Mar 2015 09:37:15 +0000 (+0100) Subject: ass5a finished X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=d04f809ae91185d2051566c82d84601b50d6efa6;p=sws1-1415.git ass5a finished --- diff --git a/ass5a/mart/sws1-assignment5-s4109503-s4202015/exercise2c.c b/ass5a/mart/sws1-assignment5-s4109503-s4202015/exercise2c.c index 3797073..67fc950 100644 --- a/ass5a/mart/sws1-assignment5-s4109503-s4202015/exercise2c.c +++ b/ass5a/mart/sws1-assignment5-s4109503-s4202015/exercise2c.c @@ -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;