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
Get step-by-step solutions from verified subject matter experts
