msg_lookup
while ((msg = msg_lookup(que, msgtyp)) == NULL) {
struct msg *msg_lookup(struct que *, int);