inspect a pid in linux

C++
ps -Flww -p THE_PID
Source

Also in C++: