[C.C++] c语言存储键值对,C实现的简单键值对

679 0
Honkers 2025-3-7 19:04:55 | 显示全部楼层 |阅读模式

typedef struct {

unsigned short id;

char *str;

} value_string;

static const value_string vals_message_type[] = {

/* MMS 1.0 */

{ PDU_M_SEND_REQ, "m-send-req" },

{ PDU_M_SEND_CONF, "m-send-conf" },

{ PDU_M_NOTIFICATION_IND, "m-notification-ind" },

{ PDU_M_NOTIFYRESP_IND, "m-notifyresp-ind" },

{ PDU_M_RETRIEVE_CONF, "m-retrieve-conf" },

{ PDU_M_ACKNOWLEDGE_IND, "m-acknowledge-ind" },

{ PDU_M_DELIVERY_IND, "m-delivery-ind" },

/* MMS 1.1 */

{ PDU_M_READ_REC_IND, "m-read-rec-ind" },

{ PDU_M_READ_ORIG_IND, "m-read-orig-ind" },

{ PDU_M_FORWARD_REQ, "m-forward-req" },

{ PDU_M_FORWARD_CONF, "m-forward-conf" },

/* MMS 1.2 */

{ PDU_M_MBOX_STORE_REQ, "m-mbox-store-req" },

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Honkers

荣誉红客

关注
  • 4009
    主题
  • 36
    粉丝
  • 0
    关注
这家伙很懒,什么都没留下!

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行