client_main.c
来自「《UNIX进程间通信》中的代码」· C语言 代码 · 共 22 行
C
22 行
#include "svmsg.h"void client(int, int);intmain(int argc, char **argv){ int readid, writeid; /* 4assumes server has created the queues */ writeid = Msgget(MQ_KEY1, 0); readid = Msgget(MQ_KEY2, 0); client(readid, writeid); /* 4now we can delete the queues */ Msgctl(readid, IPC_RMID, NULL); Msgctl(writeid, IPC_RMID, NULL); exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?