#include #include #include int main(int argc, char *argv[]) { pid_t my_pid = getpid(); printf("getpslot for pid %d is %d\n", my_pid, getpslot(my_pid)); if(getpslot(-10) == -1) { perror("A pid can't be negative"); } if(getpslot(200) == -1) { perror("Couldn't find pid inside table"); } }