Skip to content

Instantly share code, notes, and snippets.


Jan van Mansum janvanmansum

  • DANS
  • Den Haag, Netherlands
View GitHub Profile
janvanmansum / structs.c
Last active Nov 9, 2016
The gist of C structs
View structs.c
// 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;