Alex Rivera | Logout

Is there an auto-resizing array/dynamic array implementation for C that comes with glibc?

Asked 2009-02-22T22:04:03.057
16

Is there a dynamic array implementation in glibc or any of the standard Linux libraries for C? I want to be able to add to a list without worrying about its size. I know std::vector exists for C++, but I need the C equivalent.

Edit
Report

1 Answer

1

I always use realloc for this, you could wrap your own array functions around it. AFAIK, there are no other built-in things for this.

answered 2009-02-22T22:09:30.907

Your Answer