Coder Social home page Coder Social logo

clib's Introduction

C Library Code

本目录下的代码均是 C 代码,大多数代码基于 Linux 平台。

Code List

  • main.c 演示了带命令行参数的 main 函数的使用
  • rw_queue 实现了一个基于 idx 的环形缓冲区队列,常用于“生产者-消费者”应用场景
  • ring_buffer 参考 Linux 内核的 kfifo 实现了一个基于字节流的环形缓冲区
  • synclock 封装了 mutex 和 condition 代码,方便在其他项目中快速集成条件同步功能
  • keylist 实现了一个带有键值 (key) 的双向链表,可以通过 key 直接访问某个节点
  • pipe 封装了Linux系统的无名管道(pipe),可以方便地集成到 C 语言项目中作为“队列”来使用
  • syslog 演示如何构建一个“专业”的 Log 系统,相关博文:构建专业的log系统
  • broadcaster 演示了如何在 Linux 平台下收发广播包
  • multicast 演示了如何在 Linux 平台收发 UDP 多播包
  • common 一些常用的函数和测试代码
  • thread 封装了 POSIX threads API 接口
  • ffmpeg 一些关于 ffmpeg 的代码封装和示例

Thanks

谢谢你的关注,欢迎提供建议和意见,联系方式:[email protected]

clib's People

Contributors

jhuster avatar

Watchers

James Cloos avatar  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.