Giter Club home page Giter Club logo

nflib's Introduction

NfLib

一个不用动态内存管理的C语言工具库,探索C语言的各种奇妙写法 :-D,使用方法见Main.c和各个Example文件

1. Base -- 基础类型

  • _LAYER(layer, name) -- 使用#if和#endif来方便折叠代码

  • u8x2, u8x4, u8x8 -- 方便将word, dword, qword拆成对应的n个byte

2. Array -- 增强型数组

  • 支持双向的Push和Pop操作

3. Fsm -- 有限状态机

  • 有限状态机:-D

4. TaskGun -- 任务手枪

  • 完成“周期检查弹仓中是否有子弹,有的话就发射一发子弹”的逻辑,使用者可以在任意时刻往“弹仓”内添加“子弹”

5. QuickSort -- 快速排序

  • 快速排序模板函数

6. Ring -- 环形队列

  • 一条首尾相连的队列

nflib's People

Contributors

numbfish-luo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.