The C Programming Language, Second Edition. Exercises and such.