Check these links out.They pack a lot of info

http://c-faq.com/~scs/cclass/notes/sx13.html
http://www.cprogramming.com/tutorial/c/lesson14.html