#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct __attribute__((__packed__)) weird_struct
{
	int some;
	unsigned char value[1];
};

int main(void)
{
	unsigned char text[] = "Allie has a cat";
	struct weird_struct *ws =
		malloc(sizeof(struct weird_struct) + sizeof(text) - 1);
	ws->some = 5;
	strcpy(ws->value, text);
	printf("some = %d, value = %s\n", ws->some, ws->value);
	free(ws);
	return 0;
}
