Giter Club home page Giter Club logo

cn_stack's Introduction

CN_Stack

A C library that implements C++ Stacks in C.

Along with linked lists, stacks are among one of the simplest data structures. In C++, these are included in STL which you can use by using "#include <stack>". In C, you have to make it yourself.

Stacks are a LIFO (Last-In-First-Out) structure, meaning you can push back, and only pop back. In other words, you can add to the back of the stack, but you can only access the last element.

CN_Stack is a generic stack container that can hold any data of any size in it. This is because you specify the type while initiating the stack. All nodes created in that stack will be able to hold the number of bytes of the datatype specified. It is a dynamically resizable structure. All operations except for "cn_stack_clear" are constant time, making this an extremely fast and efficient library.

Full documentation at: http://web.eecs.utk.edu/~ssmit285/lib/cn_stack/index.html
The documentation has details and examples on every single function in the library, as well as a guide comparing it to C++ Stacks.

cn_stack's People

Contributors

idestykk 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.