Get process ID

Hello,

I'm new to C++ programming on Linux. Does anyone know of a method to get the id of a process by name? I know this can be done with a system call to pidof, but I'd like to do this in pure C++. Thanks in advance!
If you want to go thru the pain of it, you could look it up in /proc
Topic archived. No new replies allowed.