how to monitor CPU occupy rate in command line mode in qnx?

I want to monitor the system CPU occupy rate using telnet and watch it in command line.

hogs

Is it possible to get the information by using c API?

where can i download the source code of hogs?

on foundry27 in the os section

Can you give me the link?

lmgtfy.com/?q=foundry27+os+source