Markdown
A console-based Inventory Management System written in C. Add, view, update, and delete inventory items — all managed through a structured terminal interface using structures and arrays.
This project is an Inventory Management System built in C. Inventory items are managed through an interactive terminal menu using structures and arrays.
The program demonstrates:
- Structures
- Arrays
- Function pointers
- Menu-driven programming
- Basic input validation
Built and tested on Android using CxxDroid.
| Feature | Description |
|---|---|
| ➕ Add Items | Add inventory items with quantity |
| 📋 View Inventory | Display all stored inventory items |
| 🗑️ Delete Items | Remove items by matching item name |
| ✏️ Update Items | Modify existing inventory items |
| 🧠 Function Pointer Menu | Uses function pointers for menu navigation |
| 🖥️ Terminal UI | Uses cursor positioning and formatted layout |
- A C compiler such as GCC
- Linux/macOS terminal, MinGW on Windows, or CxxDroid on Android
gcc INVENTORY.c -o inventoryRun
./inventory🖥️ Usage On launch, the main menu appears:
----------------------INVENTORY MENU----------------------
- ADD ITEM
- VIEW INVENTORY
- UPDATE ITEM
- DELETE ITEM
- EXIT
Enter an option:
Item Data Format Each inventory item stores: Item Name-Quantity
Example:
Keyboard - Quantity: 5
Mouse - Quantity: 2
- No Permanent Storage:
Inventory data is stored only during runtime. All data is lost after program termination.
- Fixed Inventory Size:
Maximum inventory capacity is limited using:
#define MAX_ITEMS 100
But it can be changedbby changing the value.
- Exact Name Matching
Deletion requires exact item name matching using strcmp(). Example:
Laptop ≠ laptop
📁 File Structure
.
├── INVENTORY.c # Main source file
└── README.md # Documentation
🔮 Future Plans:
[1] Add file handling for permanent storage
[2] Improve update item functionality
[3] Add search feature
[4] Add case-insensitive matching
[5] Improve UI formatting
[6] Modularize into multiple files
👤 Author
Adrish Datta
Made with ❤️ in C by Adrish Datta | Built on Android 📱