asfasf
public text v1 · immutable#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");
}