Skip to content

💩 [Study] - An application to implement a simple static list

License

Notifications You must be signed in to change notification settings

lpsm-dev/static-list

Repository files navigation

gif-header

✨ Simple static list ✨

Semantic Release Commitizen friendly


gif-about

✨ A console application written in C to register users and store them in a simple static list data structure ✨

Getting Started   |    Versioning


➤ Installation

docker pull ghcr.io/ci-monk/static-list:main

➤ Usage

Gcc

cd src && gcc -o main main.c static-list.c && ./main

Docker

To run the docker container:

docker container run -it --rm ghcr.io/ci-monk/static-list:main

Click here to see available image tags.

➤ Features

  • Create a static list in a simple way.
  • Initialize static list struct with default values.
  • Create a function to return de list size.
  • Create a function that check if the list is empty.
  • Create a function that check if the list is full.
  • Insert element at the beginning of the list.
  • Insert element at the end of the list.
  • Remove element at the beginning of the list.
  • Remove element at the end of the list.
  • Search element by position in list.
  • Search element by content in list.
  • Destroy list reference of memory.
  • Pretty console flow.

➤ Concepts

List

A list is a structure that stores elements in an aligned way, that is, with elements arranged one after the other.

C struct

In C programming, a struct (or structure) is a collection of variables (can be of different types) under a single name.

struct

➤ Demo

Screen.Recording.2022-01-05.at.15.38.21.mov

➤ Versioning

To check the change history, please access the CHANGELOG.md file.

➤ Show your support

Give me a ⭐️ if this project helped you!

star-wars

Made with 💜 by me 👋 inspired on readme-md-generator