Created
December 20, 2010 18:02
-
-
Save nietaki/748723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int intRcv(int qid, int type){ | |
ssize_t insize; | |
struct intmsgbuf out; | |
insize = msgrcv(qid, &out, sizeof(int), type, RCV_MSG_FLAG); | |
if(insize == -1){ | |
syserr("intrcv"); | |
} | |
return out.mtext[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment