• HOME
  • JOURNAL
  • CONTACT

kilcher04.net | journal

Daily Archives: 2007/12/27

Usapang Malloc

27 Thursday Dec 2007

Posted by kilcher in Geekdom, Poetry

≈ Leave a Comment

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) );
source_of_emo->duration = 70;

strcpy( source_of_emo->name, “sikret heehee” );
strcpy( source_of_emo->location, “sikret ulit heehee” );

printf( “kilcher is remembering the memory %p with the name of %s who is located at %s. memory length is %d”, source_of_emo, source_of_emo->name, source_of_emo->location, source_of_emo->duration);
.
.
.
free( source_of_emo );
.
.
.
free( source_of_emo );
.
.
.
ERROR: pointer source_of_emo does not respond;
.
.
.
free( source_of_emo );
.
.
ERROR: pointer source_of_emo does not respond;
.
.
.
ANUBAH! ANAK NG TINALUPANG TINOLA NAMAN! CTRL-ALT-DEL FORCE SHUTDOWN!

——-

Gomen ne. Rusty na ang aking C skills. Kung mali, hayaan na lang hehe. At shoutout kay Apols ⇁Ekasalanan mo ito haha.

Social Network

Recent Comments

  • kilcher on t minus 2 weeks
  • meema on t minus 2 weeks
  • kilcher on Maybe Either, Maybe Neither, We Just Don’t Know
  • maytoio on Maybe Either, Maybe Neither, We Just Don’t Know
  • Andi on Desktop as of 2011.06.30

Calendar

December 2007
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Nov   Jan »

Proudly powered by WordPress Theme: Chateau by Ignacio Ricci.