When I use "top", information will be shown like below...
==============================================================
2 processes: 1 sleeping, 1 on cpu
Cpu states: 0.0% idle, 100% user, 0.0% kernel, 0.0% iowait, 0.0%
swap
Memory: 30M real, 10M free, 11M swap, 114M free swap
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU
COMMAND
3497 xxxxxxxxx 27 0 1360K 1232K cpu 0:00
0.00% 0.00% top
3428 xxxxxxxxx 33 0 1168K 1040K sleep 0:00
0.00% 0.00% csh
==============================================================
How can I determine the information in column "SIZE" and "RES" in C
Program?