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

rsjethani picture rsjethani · Dec 22, 2012 · Viewed 64k times · Source

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 own?

Thanks.

Answer

Alok Save picture Alok Save · Dec 22, 2012

The C Standard does not provide data structures like linked list and stack.Some compiler implementations might provide their own versions but their usage will be non portable across different compilers.

So Yes, You have to write your own.