Question: what is msgctl in c?
Answer: The msgctl() function allows the caller to control the message queue specified by the msqid parameter. A message queue is controlled by setting the cmd parameter to one of the following values: IPC_RMID (0x00000000) Remove the message queue identifier msqid from the system and destroy any messages on the message queue.