From 3513468ecf3bd46ae0c1572f0feec32c09d3cd5f Mon Sep 17 00:00:00 2001 From: Win Date: Wed, 22 May 2024 15:07:11 +0700 Subject: [PATCH] goofy --- goffy | Bin 0 -> 16184 bytes goffy.c | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 goffy create mode 100644 goffy.c diff --git a/goffy b/goffy new file mode 100755 index 0000000000000000000000000000000000000000..84dd4e3f40515f09f018b8457546ed71c5d40a78 GIT binary patch literal 16184 zcmeHOZ)_Y#6`!-?#7UFbNfYWisNR%VN($ci65E&tlk?xKD?15^1F1^btbKd-RrfD< zd(^H9IJhoYmPJ88zwjZYADRFX79uEurn;md1XQX7fz(PMnTjF@6=KwaQfPdzny}cVACgC?vR)i;oG^#;X+)Aw%njsRAM*TEzx9 zYobo927Q&pls%#ZSXFtoY`Lr?yc{I*YOqp5zF)zDCHD{|@>VJ}Ym|khpzAdwo9?J!a$CC4j zIl-fq^68fv*sy5wEQFtToOpiOMgA-?29~35IMMeK?=bN)nrue+<%bk3SaQ6N0}u1^ zpBBE&M=0J(_aQ?0XG!T5yA$!jmZsf_XhR~N%8xdTwzf31H0imtzDITe`-L%ZOdU9Q zOq7j_0%FX^`W84at!RJr;`m#Gn=k*aNnh;G|M=PN9j7O6a~sG(A1vt4LxS~nP{C`* zd$txqD#-KtVqdULY=a&HX-5wFs{EaX+EP0=>{pT!SmA^*HK?t>t?z9TX75118MU+aa6ISO z*@6DfL^@>;Sc3^0q6{a~DT-?<*OHFV)iSty{mFBExh+!u6c0p z7`^Vn<>xUGUiIJ{15I-t+&lI~L=kbEV?MZ4MpO-Pd=|J=M^p`Q^&BX@#)I=Sqb$KW z$Uu;RAOk@Lf(!&12r}^hnE_+s%}Qgs;wQU>FeVF5S@F6tai#Jl_hO69KL=B>{$)5< z)kUC&`Uu)@&K055Uq&6LemAd6{YR+dl<#Ii>fc8lr)W24rT!@Bv8O?oCH$w}sT-d* zrd~HDe!p;dpgUX$|ICT_^l$D!v1`$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QU$)+=Q)*16agZVgYpNU5a zYVYW6z+oiaN37h4(4%812%)5tRTlcvSf-d@%i0MG2~^7@9HGl@>QL2()1W%`D4cOP zfm2%E7u_DA0W=bYMp#o+HIfvA>kz?8#)lw$+QF8gb9jGsNW0KsEGJ=zdY_;7TE}@7 zJbLh*p-K&Xzp>&1J{pWT*3E1CYZpD0_Z?fe6`}wjlI9YJu zT$A}cA7!~fju;p36UXOyVH_|_8S{C5%kmu9yan6vmQ$eM+>!Y_Uu4O@V{rf3kLBlp zk8@Ghc|OWALc#p~Cs@ot1#`)Ko)5DukR!+UU;i`2?;t;(U$Z>v;p01opZ_dim=k^< zaKC@(dx+=l)Qs#a*HL~G4liFL9?QdCXQ-3emCyV58FFCB{pDs@XF2QRj}xC|3n!Ku z;P~9$4}E-||FB%kjwE^9GyDSa-7p$iNXnNGf>8M5UjYpB$NY>23KW*S|5Bl9tZ*IW zFX8a=&uECkd!QzT_^uM}ne)cLZ=eDzNaZtx7{7n=K25(r>n!JiQ|00F`{}g?Y;9@0 zDQ!t-{@Y-{u}2?!?mU_I-TL>}GLQ549pK{iGoSat6?Ov%Wv3GEnfWa5fW^z__t|;k z^ZPqDz&w_#f$ZgL5#^~hD#`uy^I6CFJGRCB=Xqo!@i`9rV=QmkMDfYpH8Fpmi>M0o zy^_bC*EK^8o~4fA``l(YxIg^)i_Zu5-OI0OQd+sMagNKrIL$7_-$w7LwLXGR75@a3 CxUUcZ literal 0 HcmV?d00001 diff --git a/goffy.c b/goffy.c new file mode 100644 index 0000000..51dd710 --- /dev/null +++ b/goffy.c @@ -0,0 +1,25 @@ +#include +#include + +int main() { + const char src[20] = "HA! poopoohead!"; + + char dest[100]; + + int eh = sprintf(dest, "%s", "goofy"); + printf("%d\n", eh); + + memcpy(dest + eh, src, strlen(src) + 1); + + printf("Output: %s\n", dest); + + printf("src[0] %p\n", &src[0]); + printf("src[0] %p\n\n", src); + printf("src[1] %p\n", &src[1]); + printf("src[1] %p\n", src + 1); + printf("src[50] %p\n", src + 49); + + printf("%ld", sizeof(dest)); + + return 0; +}