newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年11月18日

摘要: #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)