Skip to content

Instantly share code, notes, and snippets.

@samsonjs
Created January 18, 2010 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsonjs/279790 to your computer and use it in GitHub Desktop.
Save samsonjs/279790 to your computer and use it in GitHub Desktop.
struct Base {
int type;
int flags;
};
struct Frobulator {
struct Base base; /* Frobulator begins with 2 ints for type and flags */
unsigned int frob_limit;
};
struct Snazzifier {
struct Base base;
int snazz_level;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment