Skip to content

Instantly share code, notes, and snippets.

View janvanmansum's full-sized avatar

Jan van Mansum janvanmansum

  • DANS
  • Den Haag, Netherlands
View GitHub Profile
@janvanmansum
janvanmansum / structs.c
Last active November 9, 2016 21:02
The gist of C structs
// s1 is a structured field with two int fields: a and b
struct {
int a, b;
} s1, *ps1;
// s2 is the same type of structured field as s1, only that "type" has no name.
struct {
int a, b;
} s2, *ps2;