how to use glMaterialfv()

Hi, I heard that when you enable lighting, in order to set the color of an object, you should use glMaterialfv(), right?
But how does it actually go? What are the arguments I should fill in and what are the things I should take note?

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=glMaterial&btnG=Search

Thanks!will check it out!

…or you can enable GL_COLOR_MATERIAL, and use only glColor() calls for simpler materials.