#include <stdio.h>
#include "starfolk.h"
void show(struct bem*pb);
int main(void)
{
struct bem * pb;
struct bem deb = {
6,
{ "Berbnazel", "Gwolkapwolk" },
"Arcturan"
};
pb=&deb;
show(pb);
return 0;
}
void show(struct bem*pb)
{
printf("%s %s is a %d-limbed %s.",pb->title.first,pb->title.last,pb->limbs,pb->type);
}
/*
starfolk.h
struct name{
char first[20];
char last[20];
};
struct bem {
int limbs;
struct name title;
char type[30];
};