/inventory-management

An inventory management system written in C for a warehouse that keeps track of individual store's inventory

Primary LanguageC

Inventory Management System

An inventory management system written in C

Details

Author: Hamza Sohail

Purpose: Create a inventory mangement system using C for a school project

Structure

Files:

I have seperated the functionality with these criteria:

  • Interface, src/interface.c (related to the CLI, such as showing the user the commands and taking in input from the user)

  • Client, src/client.c (related to the funcs that a user would interface with, such as buying and adding stock)

  • Store, src/store.c (related to internal operations of the store such as memory allocation, initialization of the store)

  • Utility src/util.c (utility funcs used by either Store or Client internally, that a client does not interface with)

With each of them having their own header files for forward references

The structures are defined in "src/headers/data_types.h"

The includes are in "src/headers.h"

Usage

Compilation instructions:

You can run the compile.sh file I included On Windows, using GitBash or Linux

$ ./compile.sh

On MacOS or Unix

$ bash compile.sh

Or run this command manually

$ gcc -o build/app src/store.c src/client.c src/util.c src/interface.c main.c

To run:

$ ./app