how to read a list of current running process in linux using C++
<p>i need to read the list of current running process into a C++ program. 
I know that one way to do is to use ps command and other is to read /proc file system but i want to know how one can get names of processes by reading /proc file system.
also is there any other way to read the list.</p>
