Skip to content

Instantly share code, notes, and snippets.

@fxfactorial
Last active October 16, 2018 22:34
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 fxfactorial/86a9657ba445aedaba7598c1240ba3e5 to your computer and use it in GitHub Desktop.
Save fxfactorial/86a9657ba445aedaba7598c1240ba3e5 to your computer and use it in GitHub Desktop.
struct e {
int a;
void *b;
};
// IRC said this was fine, equivalent to a memcpy (also use memcpy_s)
void init(struct e *example) { *example = ((struct e){.a = 0, .b = NULL}); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment