{"id":10,"date":"2007-12-27T16:12:27","date_gmt":"2007-12-27T07:12:27","guid":{"rendered":"http:\/\/www.kilcher04.net\/2007\/12\/27\/usapang-malloc\/"},"modified":"2007-12-27T16:12:27","modified_gmt":"2007-12-27T07:12:27","slug":"usapang-malloc","status":"publish","type":"post","link":"https:\/\/www.journal.kilcher04.net\/?p=10","title":{"rendered":"Usapang Malloc"},"content":{"rendered":"<p>typedef struct data_type {<br \/>\nint\tduration;<br \/>\nchar\tname[20];<br \/>\nchar\tlocation[20];<br \/>\n} memory;<\/p>\n<p>memory *source_of_emo;<br \/>\nsource_of_emo = (memory*) malloc( sizeof(*source_of_emo) );<br \/>\nsource_of_emo-&gt;duration = 70;<\/p>\n<p>strcpy( source_of_emo-&gt;name, &#8220;sikret heehee&#8221; );<br \/>\nstrcpy( source_of_emo-&gt;location, &#8220;sikret ulit heehee&#8221; );<\/p>\n<p>printf( &#8220;kilcher is remembering the memory %p with the name of %s who is located at %s. memory length is %d&#8221;, source_of_emo,  source_of_emo-&gt;name, source_of_emo-&gt;location, source_of_emo-&gt;duration);<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nfree( source_of_emo );<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nfree( source_of_emo );<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n<strong> ERROR: pointer source_of_emo does not respond;<\/strong><br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nfree( source_of_emo );<br \/>\n.<br \/>\n.<br \/>\n<strong> ERROR: pointer source_of_emo does not respond;<\/strong><br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n<strong><font color=\"#cc0000\"> ANUBAH! ANAK NG TINALUPANG TINOLA NAMAN! CTRL-ALT-DEL FORCE SHUTDOWN!<\/font><\/strong><\/p>\n<p>&#8212;&#8212;-<\/p>\n<p>Gomen ne. Rusty na ang aking C skills. Kung mali, hayaan na lang hehe. At shoutout kay Apols \u21c1Ekasalanan mo ito haha.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>typedef struct data_type { int duration; char name[20]; char location[20]; } memory; memory *source_of_emo; source_of_emo = (memory*) malloc( sizeof(*source_of_emo) ); &hellip;<\/p>\n<p><a href=\"https:\/\/www.journal.kilcher04.net\/?p=10\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[427,13],"tags":[],"_links":{"self":[{"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":0,"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.journal.kilcher04.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}