Skip to content

Instantly share code, notes, and snippets.

@fay59
fay59 / Quirks of C.md
Last active September 4, 2024 23:07
Quirks of C

Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.

There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
 int x;
@sailfish009
sailfish009 / ffmpeg_msvc.txt
Last active June 22, 2018 01:44
build ffmpeg static with visual studio 2015
0.visual studio 2015 update 2 ( 7 GB)
http://download.microsoft.com/download/1/2/1/1211d9dd-b504-47f2-90f2-20cb8b44e096/vs2015.2.ent_enu.iso
1. download ffmpeg source file
http://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2
2. download msys2
http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20160205.exe
3. download yasm 64bit and copy it to /usr/bin/yasm.exe