Some Sample code from K&R The C Programming Language