Skip to content

Instantly share code, notes, and snippets.

@pstef
pstef / gist:4750224
Created February 10, 2013 17:02
<zid`> There's a really cryptic gcc command you can invoke to tell you all the #defines that are in a blank C file
gcc -dM -E - < /dev/null
@pstef
pstef / gist:4726614
Last active December 12, 2015 06:08
memcpy(d, s, n)[n - 1] = 0;
memmove(d, s, n)[n - 1] = 0;