]> Pileus Git - ~andy/sfvlug/blobdiff - c/c.txt
Add C notes.
[~andy/sfvlug] / c / c.txt
diff --git a/c/c.txt b/c/c.txt
new file mode 100644 (file)
index 0000000..3d56912
--- /dev/null
+++ b/c/c.txt
@@ -0,0 +1,43 @@
+Intro:
+
+  1. Hello, World         -- src/hello.c
+  2. Compiling            -- src/cc.sh
+  3. Functions            -- src/fun.c
+  4. Arguments            -- src/arg.c
+  5. Pre-processor        -- src/cpp.c
+
+Control flow:
+
+  - do, while, for        -- src/loop.c
+  - if, switch            -- src/cond.c
+  - goto, labels, return  -- src/jump.c
+  - duff's device         -- src/duff.c
+
+Data types:
+
+  - Basic types           -- src/data.c
+  - Structs and unions    -- src/struct.c
+  - Unions                -- src/union.c
+
+Argument parsing:
+
+  - src/args.c
+  - src/opts.c
+
+Multiple files:
+
+  - src/util.c
+  - src/util.h
+  - src/main.c
+
+Why C?:
+
+  - You *can* do anything in C.
+  - C programs never break.
+  - Embedded software.
+  - High performance.
+  - C programs just work better.
+  - C and Unix (and Linux)
+
+
+# vim: ft=txt