摘要:
#include "public.h"void msg_show_attr(int msg_id,struct msqid_ds msg_info){int ret=-1;sleep(1);ret=msgctl(msg_id,IPC_STAT,&msg_info);//获取消息if (-1==ret){printf("获得消息信息失败\n");return ;}printf("\n");printf("现在队列中字节数:%d\n",msg_info.msg_cbytes);printf("队列中消 阅读全文
posted @ 2011-11-18 11:39
一枚程序
阅读(406)
评论(0)
推荐(0)

浙公网安备 33010602011771号