msgcom.h

来自「linux下模拟进程互斥的一个小程序。」· C头文件 代码 · 共 30 行

H
30
字号
/* msgcom.h */#include <errno.h>#include <sys/types.h>#include <sys/ipc.h>#include <sys/msg.h>#define MSGKEY 5670struct texttype {       int appli_in;       int appli_exit;};struct msgtype {    long mtype;    struct texttype text;};int UP(s)int s;{ s=s+1; return(s);}int DOWN(s)int s;{ s=s-1; return(s);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?