What would be a good open source lightweight c library with basic utility functionality to use in an embedded system [closed]

梦想与她 提交于 2019-12-04 11:39:09

问题


I'm thinking of something like glib, but possibly a slim version with a minimal foot print. It would need basic utilities such as linked lists, vectors and hash tables. It should also have a minimal runtime footprint.


回答1:


Not exactly a library, but a tested, optimized and documented piece of code: sys/queue.h on *BSD and Linux systems has macros for various kinds of intrusive linked lists and queues.




回答2:


uthash is a nice hash table library (made entirely of macros), it also comes with a linked list, dynamic string and dynamic array macros.

I also highly recommend sys/queue.h (suggested by larsmans) for simple and well tested linked lists.



来源:https://stackoverflow.com/questions/3951020/what-would-be-a-good-open-source-lightweight-c-library-with-basic-utility-functi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!