From 4a310e02745823dd7a6e84fd81225b2cf1563289 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 9 Feb 2015 13:01:28 +0100 Subject: [PATCH] now really final ass2 --- ass2/mart/sws1-s4109503-s4202015/exercise1b | Bin 0 -> 7168 bytes ass2/mart/sws1-s4109503-s4202015/exercise1b.c | 1 - ass2/mart/sws1-s4109503-s4202015/exercise1d | Bin 0 -> 7184 bytes ass2/mart/sws1-s4109503-s4202015/exercise1d.c | 1 - ass2/mart/sws1-s4109503-s4202015/exercise2 | Bin 0 -> 7208 bytes ass2/mart/sws1-s4109503-s4202015/exercise2.c | 24 ++++++++---------- ass2/mart/sws1-s4109503-s4202015/exercise3 | Bin 0 -> 6840 bytes ass2/mart/sws1-s4109503-s4202015/exercise3.c | 2 +- 8 files changed, 12 insertions(+), 16 deletions(-) create mode 100755 ass2/mart/sws1-s4109503-s4202015/exercise1b create mode 100755 ass2/mart/sws1-s4109503-s4202015/exercise1d create mode 100755 ass2/mart/sws1-s4109503-s4202015/exercise2 create mode 100755 ass2/mart/sws1-s4109503-s4202015/exercise3 diff --git a/ass2/mart/sws1-s4109503-s4202015/exercise1b b/ass2/mart/sws1-s4109503-s4202015/exercise1b new file mode 100755 index 0000000000000000000000000000000000000000..6999b5eda7a4051b7b3a3e18d0d861ad742cae51 GIT binary patch literal 7168 zcmcIpYiwLs5uV-kWAj?Cla#n|NLCQ5PJ}m(aZExBx$9T1BPVeayA%cIdhNZox9r2( zM`|0PxVVk7loSiv{y?e}2?_iIq5P<#{2_5jlz@a#%A-O+B|~XtHx#96Ng`0Q%$z&3 zd-r;cDkNrg@0|J0%$#%P&OML2XS#a3-7Xghx#7z|(qe_CAnOh=vssCZ?FTPtupR25 z3Xw{@G*v^~DhXd;*TTK5=RsaUWj6zE%_=b8W=SAidPtnwE0V@Vi?8PfgaZUrJ=sxT z{ao+&4k=u?&i&|<{;(a1WY@@cjch0UHaSKTF5{!I(Y1~JZF6fVk*pDePIWJG6$`}r z-p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art/sws1-s4109503-s4202015/exercise1b.c index c9c0f52..c9473bd 100644 --- a/ass2/mart/sws1-s4109503-s4202015/exercise1b.c +++ b/ass2/mart/sws1-s4109503-s4202015/exercise1b.c @@ -1,5 +1,4 @@ #include -#include int main(void) { diff --git a/ass2/mart/sws1-s4109503-s4202015/exercise1d b/ass2/mart/sws1-s4109503-s4202015/exercise1d new file mode 100755 index 0000000000000000000000000000000000000000..1b7b59b9636f6c8385e7551e93bafe601dc20c7a GIT binary patch literal 7184 zcmcIpYitzP6~4Rc$MRY)kE8}uShb)SR4;4SxTZ{X zZMRjNn4oM@601$CD*b~{+M-I8s8pr=0$Wh{(@G#w6!jq?QjiTvOB710s=@uvoqN`^ z<8eiQ^sZ*kJ>Na&+;h*IxsTZwTRYm^E|=iq7S9XfZk2>3WZs3C-XK|pH43i?i!Gu` zlmRKl6_zbT%^K4gWtyp1$$3CasP0yPJ8V`I-E4A#DSJqi`dchvRW<2m)d5o>0*Hb(Uis8dP9MYLXWLNH~$FGEkMD2e}0{Hl4^NW8zHe%DB>W+a}>jn#}bHq}rhmMFJpZU$pwW*&UUGwx$R{yQ*m!!)V zs!v?DKysaf^x9?c%4P8F%iv!C9>8TUs{lClD-fpv3QL0+OpO{zF`AAivx8!A$jA+M%1pL&?kE|Vy6nAV_O!7344M|Uzk_?l)-YK=TjJ1k5)4bqD}qNr{(V)uR0HFayV;yFH*z8EeM|= zQ1o6Jq!MKQ0=4&OFa1>-n0@Sl0WJSPo1NRMxvpr}A7`H`SX;%`Dz=gx+5hC1u9pOa z$gS;x;#?Ar^AT3}&e!=JRNOD=8C{oFlDprgH!uSI$z z$09mHUWoU{$SY}0rI-uvOj_)U8OL|!($Qorl@QxQ^PC*$^lt#|d=&ZP16H z9iaCxoOeKDh~95OZ-8z<7V@&^nm8<6V}4iF>T>V2tK3gGtxcz)zY~;;v%C=7AVBg0 z@}oq3{x)Cb{)$!K^iGPso1WeI`E8#enB-b;Jr92}1VnuPlkVmlcO0D)hC(tU zx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vK zhngZC`k}VAuGVh7JJQtAO6KHQe;|{S4hy}#`+&X}o$dq86r1j7|A--Ifj7Sa2;GpY zz4^f)9JYQCFzuM%6^dKrM}}f($)^T;v$fCSj}VA@CZ!MKa0J)%_CxS27EkKAjDa{T zj*8*{cas2B9CU0^R9$}DkRL*9{q8@mA65y{JQB@hkR7^?VDLkrC~>+J#Yo28A+i5Q zh|U#wWefXv;SPgCLB3PrbA`#7vRo(nSzP6~lz3r3#ozG)XtNfcCm5?m#j4NyuIH4& zZ7is$UB3nRBkcXT|2}sZ2%UQ*DfmxkSSozZFgYO(qC#gK)}M5T!3pf=BoSv#BEM-; zoLHaFB}ahKS%~#{zgMjeNPM1BW@N0nPL$SXI?J#=?+YiCzE26W|18J!8)&Dq5%au% zd{yZOlzthg)qe$x2~;Sitk3(*vr3=G$^F~Me?sXuDT6bfu&m7}eLfG8KAm~(`fmUu zzsNr-yl?GP58A%NQm`qEdmfinpZB+;N>F|~C`d1UFZ3&n_B&R6UWaZe{oB-NDXhoP z+o)LedB1#F4QK@mDr)!tw9@DJ^S=6;(&z60Y{srn`APk=KJUNzdw4x7Dr(n%*QU?= z^Z>n-DE~G|;m*&Gff-aNN7dsl?B@eY&@ON1X+KzD(dT`C^%Ls92VELJ_s{2p&=cza z8M+i|*5`8s|9`>%Q*eH=|C|SRZT)-I{>H05sIWZ5WMQ7^eV|tV`CQ^x`kK;X!g@>} z+Vpu}_kz-AKkfR={|gne#pCDw(C{+;ldsl72OYvfRuFa8f5wKhK2!RCg8R0LzRCTw uplY #include -#include int main(void) { diff --git a/ass2/mart/sws1-s4109503-s4202015/exercise2 b/ass2/mart/sws1-s4109503-s4202015/exercise2 new file mode 100755 index 0000000000000000000000000000000000000000..8760b2cca6d9c4d14f3e213de865e619f5d2caac GIT binary patch literal 7208 zcmcIpZ)_CD6`#Aau^nK2=3g94VMXoMp!#APuuS8?o_#iJYW@^VnzV)W*>~Ve?YryU z9x(`7BZr7nAw_Leq4WzM@_}!qQiS+~ji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N0!@!zly60ml7}5Mf`nFN1q#b9bjG?8g6~ApSqO6Mix}qs~-XXA!>H^ zKjb&Sq4SDF#rP{7vUsjhq}YuHol#hS(rc0sd#YOQE%qsm^6~DJqqFCLK z2jSK))~QNReiLvh@OMbYRJXYGdEeNp^!IUMlnvHnlW%+Ux$b>O4XB0%752t|QR%ZA zu8%J({j^7)^T+H<9(}H(b$Y1)T@EVVz5cJDhsMwTx!xX9`fI4u1z!I%=+khi$5pJ$ zCzYUA-b=p+-CCDE*Y9VZQvZ+8r4ZRa*Td(ZQva{erBt&%p9lDV4gUXv=O@R{^WdKz z|9oy3RWB~fLrenGjPHZ%j-SsLX{Fz(^cb-o<4-;MT(@0P`W&ZMpXtxhAX_|su6M3J zA%4$v5L6!%uN9XYSpVy8CfcmexDGt_?H2tT`)5Jb=^>>(p1W@SIa<^KL+ZhO1?>m32Uhx?B`u{I -#include +#include /* Because typing unsigned char takes too much characters*/ -void print(char *address, unsigned int size) +void pm(uint8_t *a, size_t s) { - for(unsigned char i = 0; i < size; i++) { - unsigned char value = (unsigned char)*(address + i); - printf("%p 0x%02X %3u\n", address + i, value, value); - } + for(uint8_t i = 0; i < s; i++) + printf("%p\t0x%02X\t\t%3u\n", a + i, *(a + i), *(a + i)); } int main(void) @@ -16,12 +14,12 @@ int main(void) long sn1 = 4109503; long sn2 = 4202015; int y[2] = {0x11223344, 0x44332211}; - printf("address content (hex) content(dec)\n"); - printf("------------------------------------------\n"); - print((char *)&i, sizeof(i)); - print((char *)&x, sizeof(x)); - print((char *)&sn1, sizeof(sn1)); - print((char *)&sn2, sizeof(sn2)); - print((char *)&y, sizeof(y)); + printf("address\t\tcontent (hex)\tcontent(dec)\n"); + printf("-------------------------------------------\n"); + pm((uint8_t *)&i, sizeof(i)); + pm((uint8_t *)&x, sizeof(x)); + pm((uint8_t *)&sn1, sizeof(sn1)); + pm((uint8_t *)&sn2, sizeof(sn2)); + pm((uint8_t *)&y, sizeof(y)); return 0; } diff --git a/ass2/mart/sws1-s4109503-s4202015/exercise3 b/ass2/mart/sws1-s4109503-s4202015/exercise3 new file mode 100755 index 0000000000000000000000000000000000000000..d0c9e59410eae32068a7da66f10fdeaaf5715c22 GIT binary patch literal 6840 zcmcIoYit}>6+XM`S6=H!8|pl0Mi2`p!du&MEVn7mtRKlZauSm`Z4q(CYwtK-Snpc< zNbN`!hP0?wNr?oA3L&*W_z@v~@dGMVZ5$i)eA#tSHbI*6rckW~E+9#W>pdZ>;}dX%mP9Y=(4yd~qx=m}{m@4r*;Q0`l(l{?4=8MdD@bZ#F<*Wzy z#<9-buCrdQ{!z6-){BdU>g7H-Tj#FUU6F{cF75peTuLo3;J1E<}Tb^gw5@|&9#?)Uu{yy;_{mSUEq!j{2V~X%B6-HRsB=87F9>;ck~l= zd^EW5?kQ{GuhzN0-5DMkytcRqnsx2+uu|6=s!Upb4x~>emH!(*#(+;)Z5N=dbN`N7 z3pdVedjsvOVK$Cl;)>FBIKRLkjb52#iHZF-*PpPy{SOu3^1TQGSPOTo%gg(%&^y+< z_X?ZK(Kbl5`W+lcwLkxrg(`!n*mwfOXTU)N;r6Q?dHi55Ox2 z`Ydi+-LL!RHSkH$~NN8_jBHm0CF{=0bp zDw4PC+}nmi9#xyF|w0JAy;&s zFj}5nf1movL^`h>+%Oc{7TL#p5bwpWepV{YL%$Dw5xNsjJ`UI_eLAOAMTAdzY-aU8t1EeqpjbowxaFd zt+Ap#=W35e&6#LVJlYugF$kzukQ(?6{qPgqbv4!tkdXh z@7UYk+1_Qe;-k$uX(y3)b`iz$bJK;yICLTB>M1GVlyh=36w71_PAuL#*j7lK*4F7v zF*aUI;j~XBDaO`RB0oj3}8k5vr#p-#*6m z5oAR@HKx~9l_S(hGl6&$^6;?$|A$ESFK=Z8yDT5Weu-cg3i{q6^f{7z%*%<;BP9FN zYP^}|^}e+l-$I;L_$5NJ+g56@(vS~-T&f^$iTAM}oUc=%fN>eX!?cO!eeZ=+QN|a2 zIPb5FlkdHp0v@7D|G9rG(|AI(cAkF-oa2ihn~;Qq zKO+iXyMAoo4LB|R>t_;pQ^5C?R`}}JY|Y;Xe@(~tuiIY$H`a!sH-R^Xo9QLrdj1XL zp6|L!bKe8b^T264i^`Fp{|>wX>*`fsoZI5B*XM4#;PDaLrX2!8Hk+zeCY%XsninD}cX(sIyoMf!Kdv7};2RPY$K)T1B zjUy~KNA3ZcEKX0)f#R`j?(8a8XV%G0r1H)l)$aqx;)e(9fg}CsxH}3duOcSN?*H16 z_~F4mczJ5n6`1UULq~h#L-x@F2aXSn*dy`Yp#cu3Zpjn*qUtZ%gCmFS%H)h3?&GN$ zNsOl*;&a)(J(KOIL)zuI7jDz^UZ~gHzWvqSV5{%tn9Y3Fo=RkrXwx1%iYAk(jE!p! z23YAX4-oyx0MrAtkuvDAd*45F#y+Osa$h=;$2|!FFeI5u9;>|bRU=ii=UtZnbD8sZ zd;-{WwS-N#paIF>b*=K1GV3qmsl_9F$!FyMCIfX|k?&ft4ivn6$$OsE0e6a{)_#6J z@D=3P(*9W31j6?VrONk@YS%2^L$papP~ba-@aMxOEbMn07*m#eFX4Ie-v^!s#&-_k zUk{tG2zi%M<$H^3xpOUL)_gwlok93U#AF!xnNsEUr2pb4`kQd$JBZk=n%}DVh8srx zcj)cEhUqK{Jg369G~d#Ex#vjx{_(${`Mo;enC6dZKIa82%;&qMpZ^Ll?pF;S7TG5+ zYQ8_i@xT8CaJ+oUFPAjm#xV|LpRAx~xy> zzpR4~eC int main(void){ - printf("A bool uses %lu bytes\n", sizeof(bool)); + printf("A bool uses %zu bytes\n", sizeof(bool)); printf("Hex representation of true: %X\n", true); printf("Hex representation of false: %X\n", false); /* Running the following code shows that all but the 0x00 byte evaluate true */ -- 2.20.1