static struct s_record print_record;
#define NUMBER_FIELDS 9
int record_field_offsets[NUMBER_FIELDS] =
{
print_record.firstname - (char *) &print_record,
print_record.lastname - (char *) &print_record,
...
/* Remainder of the offsets */
};