# CSTL **Repository Path**: stephencui/cstl ## Basic Information - **Project Name**: CSTL - **Description**: C语言数据结构标准模板库,助力大型软件框架开发,高效实现你我所想! - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-09-23 - **Last Updated**: 2023-09-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CSTL (C Standard Template Library) C语言实现的数据结构标准模板库 为了方便地实现各类数据结构 高效做嵌入式软件大框架的开发而编写的库 开源地址:https://gitee.com/nikolan/cstl.git 代码以GB2312编码,如果使用utf-8编码,请注意转换否则中文注释会乱码 使用GB2312是因为我主要用于单片机keil环境下开发,大部分例程源码都是GB2312 #### CSTL V0.1 > 实现ring queue环形队列泛型标准模板库cstl_rq > 通过宏定义支持生成任意类型ring queue函数的实现 - cstl_rq_creat(type) 创建环形队列 - cstl_rq_front_val(type) 获取队头值 - cstl_rq_rear_val(type) 获取队尾值 - cstl_rq_enqueue(type) 数据入队 - cstl_rq_dequeue(type) 数据出队 - cstl_rq_peek(type) 数据获取但不出队 - cstl_rq_is_empty(rq) 队列是否为空 - cstl_rq_is_full(rq) 队列是否为满 - cstl_rq_len(rq) 获取数据长度 - cstl_rq_clear(rq) 清空队列 - cstl_rq_destroy_data(rq) 销毁队列数据释放内存 - cstl_rq_destroy_self(rq) 销毁队列本身释放内存 - cstl_rq_forech(rq) 遍历队列