What commands should I put at the end of my program to make it print to a printer?

The only examples I have of how to do this is something like

Code:
fprintf()
It doesnt go into detail as to what should be in the () so I have no idea.

I just though there might be something easy to toss on the end to make it print.