Ps function by c language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Ps function by c language

How can i make a function that do the work of the command ps on terminal???

16th Apr 2021, 6:36 PM
Nana4 Ever
3 Answers
+ 5
Nana4 Ever here is a reference which may be helpful if you are looking for processing status.
16th Apr 2021, 7:00 PM
BroFar - avatar
+ 1
You can execute the Linux command through a c program to get the details of the process using system function of stdlib header file.
26th Jun 2022, 8:18 AM
Arun Kumar
Arun Kumar - avatar
You can read the source code of "ps" here:
3rd Mar 2022, 10:27 PM
Gabriel - avatar