Code Monkey home page Code Monkey logo

c-vector's Introduction

C VectorπŸ‘‹

Version License: GPLv3

This is a C implementation (a bit hacky) that provides an useful interface to create, delete and modify the internal dynamically allocated c array to use it like a C++ Vector

🏠 Homepage

Table of Contents

Direct Download

build from source it is fun

Download

OR

Build From Source πŸ”¨

Clone this Repository

git clone https://github.com/Kushal-Chandar/C-Vector.git

Run Cmake configuration

mkdir build
cd build
cmake -S .. -B .

Build from build directory

make sure your are in build directory, if you are getting errors

ninja

Setup

Requires Cmake and Ninja added to path

Run install.sh in the project root folder

If you don't have git bash or have errors while running the install.sh.
Run the following commands in windows powershell.

mkdir c_vector
mkdir c_vector/lib
cp build/libc_vector.a c_vector/lib/
cp -r include c_vector

Usage

Copy the contents in c_vector/include and c_vector/lib to a folder where your compiler searches for includes and directories.
Example:

  • copy contents of c_vector/include to path/to/mingw64/include

  • copy contents of c_vector/lib to path/to/mingw64/lib

and Compile with

gcc file.c -lc_vector

OR

Compile with

gcc file.c -I"path to c_vector/include/c_implementations without quotes" -L"path to c_vector/lib/libc_vector.a without quotes" -lc_vector

lookup how to specify include directories for your compiler

πŸ“– Check examples and Reference

Author

πŸ‘€ Kushal Chandar

I have implemented basic and most common data-types

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

πŸ“ License

Copyright Β© 2022 Kushal Chandar.
This project is GPLv3 licensed.

c-vector's People

Contributors

kushal-chandar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.