/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <stdlib.h>

typedef struct
{
} hw1_t;

void hw1_put(hw1_t *o)
{
    printf("HelloWorld1 in C\n");
}

typedef struct
{
} hw2_t;

void hw2_put(hw2_t *o)
{
    printf("HelloWorld2 in C\n");
}

typedef struct
{
} hw3_t;

void hw3_put(hw3_t *o)
{
    printf("HelloWorld3 in C\n");
}

int main()
{
    hw1_t *o1 = malloc(sizeof(hw1_t));
    hw1_put(o1);
    free(o1);
    hw2_t *o2 = malloc(sizeof(hw2_t));
    hw2_put(o2);
    free(o2);
    hw3_t *o3 = malloc(sizeof(hw3_t));
    hw3_put(o3);
    free(o3);
    return 0;
}
