Does standard c library provides linked list etc. data structures?

后端 未结 6 565
囚心锁ツ
囚心锁ツ 2020-12-13 02:10

Do standard C library implementations, especially glibc (the GNU C Library) provide linked lists, stack et al. data structures, or do we have to roll our ow

6条回答
  •  借酒劲吻你
    2020-12-13 02:24

    There's a hash table implementation in POSIX (and GLibc); see the manpages for hcreate/hdestroy/hsearch.

    But, as mentioned, using glib is probably the easiest way to save yourself from reimplementing the basic data structure.

提交回复
热议问题