Question: How do I get user input for a pid? This is what I have. Do I need to make a loop? pid_t pid; char *pidStr;

How do I get user input for a pid? This is what I have. Do I need to make a loop?

pid_t pid;

char *pidStr;

printf("Please provide process identification (pid): ");

scanf("%d", pid); ?????

//pid = getppid(); //get process identification

pidStr = malloc(10*sizeof(char));

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!