It's a buildin program in dos, the thing I pointed out, was the actual dos command you would use.
For a usage within a program, take a look at
this thread, but printing from within your program is usualy handlet by asking the OS to do all the printing for you, normaly you wouldn't program your own routine.