A Generic Vector Implementation in C using void*, func*
github.com·5h·

Generic Vector and String Library

A comprehensive C library providing a type-safe generic vector implementation and a dynamic string class built on top of it. This library demonstrates modern C programming techniques with memory management, generic programming, and extensible design patterns.

Features

Generic Vector (genVec)

  • Type-agnostic: Works with any data type through void* and size parameters
  • Dynamic resizing: Automatic growth and shrinkage based on usage patterns
  • Memory efficient: Smart capacity management with configurable growth/shrink ratios
  • Comprehensive API: Push, pop, insert, remove, access operations
  • Custom cleanup: Support for custom destructor functions for complex types
  • Copy support: Deep copying with proper memory m…

Similar Posts

Loading similar posts...