All pastes #1213749 Raw Edit

asfasf

public text v1 · immutable
#1213749 ·published 2008-09-29 16:24 UTC
rendered paste body
#include<stdio.h>

typedef struct {
       int kekkosfd;
       } KEKKONEN;
    
KEKKONEN *TeeUusiKekkonen()
{
  return ( (KEKKONEN *)malloc(sizeof(KEKKONEN)));
}
 
int main(int argc, char **argv)
{
   KEKKONEN *Kekkonen = TeeUusiKekkonen();
   if (Kekkonen != NULL){
      printf("Memory alloced for a new Kekkonen\n");
      Kekkonen->kekkosfd = 1337;
      } 
      else
      {
      printf("Kekkonen fails at life\n");
      }
      
      system("pause");
}