Menu

Tree [1cfed7] master /
 History

HTTPS access


File Date Author Commit
 build-aux 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 html 2017-10-05 carlos carlos [881ef0] Doc pages commit
 m4 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 src 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 tests 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 .gitattributes 2017-10-05 carlos carlos [5332e7] Language - doc
 AUTHORS 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 COPYING 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 INSTALL 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 LICENSE 2017-10-05 carlos-caronte carlos-caronte [942b5b] Initial commit
 Makefile.am 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 Makefile.in 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 README 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 README.md 2017-10-05 jcr jcr [1cfed7] Update README.md
 aclocal.m4 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 config.h.in 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 configure 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 configure.ac 2017-10-05 carlos-caronte carlos-caronte [3c5557] Add files via upload
 index.html 2017-10-05 carlos-caronte carlos-caronte [d2ca97] Update index.html

Read Me

vector

Implementation of a generic Vector in C programming, a generic and dynamic container that expands automatically as elements are added.

Vector supports amortized constant time insertion and removal of elements , as well as constant time access. 

C doesn’t allow data types to be passed as parameters. That means a generic container needs to manually manage memory in terms of the client element size, not client data type.

How to Install
Prerequisites for installation:

    gcc
    make

Prerequisites for Running Tests:

    Check

Steps to run tests:

    Download a release from github.

    Extract the archive and cd into the extracted directory.

    Run this command

./configure

    If the above command runs successfully, run this

make

    Again, if the above command runs successfully, run this

make install

    If you want to run tests(Optional) to make sure everything works fine, run this

make check

Now, you can include heade file vector.h

For linking the vector library, gcc command would look like,

gcc -L/usr/local/lib/vector your_cprog.c -lvector

where 'your_cprog.c' is your c program using ds library.

By default vector library is installed into /usr/local/lib/vector unless you have changed the prefix while configuring.

If you find any bugs or have any feature requests, please create an Issue on Github.