]> Pileus Git - ~andy/sfvlug/blob - c/c.txt
Add C notes.
[~andy/sfvlug] / c / c.txt
1 Intro:
2
3   1. Hello, World         -- src/hello.c
4   2. Compiling            -- src/cc.sh
5   3. Functions            -- src/fun.c
6   4. Arguments            -- src/arg.c
7   5. Pre-processor        -- src/cpp.c
8
9 Control flow:
10
11   - do, while, for        -- src/loop.c
12   - if, switch            -- src/cond.c
13   - goto, labels, return  -- src/jump.c
14   - duff's device         -- src/duff.c
15
16 Data types:
17
18   - Basic types           -- src/data.c
19   - Structs and unions    -- src/struct.c
20   - Unions                -- src/union.c
21
22 Argument parsing:
23
24   - src/args.c
25   - src/opts.c
26
27 Multiple files:
28
29   - src/util.c
30   - src/util.h
31   - src/main.c
32
33 Why C?:
34
35   - You *can* do anything in C.
36   - C programs never break.
37   - Embedded software.
38   - High performance.
39   - C programs just work better.
40   - C and Unix (and Linux)
41
42
43 # vim: ft=txt