Use these:
Code:
sprintf() /* to form /proc/desired_pid/status */
open() /* the file whose name you just formed */
read() /* to get the data */
close() /* to close the file */
... then whatever normal C manipulations you want to focus in on the data you want within the data you've just read.
It's as simple and straightforward an API as you could want.