https://github.com/msio808/phonebook
Simple Terminal Based Phonebook Application in C
https://github.com/msio808/phonebook
c cli cli-app command-line contact-management-system phonebook phonebook-application terminal-app terminal-based
Last synced: about 1 year ago
JSON representation
Simple Terminal Based Phonebook Application in C
- Host: GitHub
- URL: https://github.com/msio808/phonebook
- Owner: msio808
- License: mit
- Created: 2023-10-15T22:27:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T17:35:04.000Z (over 1 year ago)
- Last Synced: 2025-04-12T01:52:05.159Z (about 1 year ago)
- Topics: c, cli, cli-app, command-line, contact-management-system, phonebook, phonebook-application, terminal-app, terminal-based
- Language: C
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Phonebook Application
The Phonebook Application is a terminal-based contact management system that allows users to store, edit, list, search, and delete contact information in a file.
## Features
- **Add New Contact**: Add a new contact with details such as name, email, phone, and address.
- **Edit Contact**: Modify existing contact details.
- **List Contacts**: View a list of all stored contacts.
- **Search Contacts**: Find specific contacts by name.
- **Delete Contact**: Remove unwanted contacts.
## Prerequisites
- [GCC](https://gcc.gnu.org/) or any other C compiler for building the project.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/msio808/Phonebook.git
cd phonebook
```
2. Build using **`GCC`**:
```bash
make
```
3. Run program **`GDB`**:
- On Windows
```bash
.\build\phonebook.exe
```
- On Linux
```bash
./build/phonebook
```
## Usage
1. You will be prompted to log in with a predefined username and password. The default is "admin" for both.
2. Use the menu to navigate through the application's features.
## Function Descriptions
- **`add_contact()`**: Adds a new contact to the phonebook.
- **`edit_contact()`**: Edits an existing contact's details.
- **`list_contact()`**: Lists all contacts in the phonebook.
- **`search_contact()`**: Searches for a contact by name.
- **`delete_contact()`**: Deletes a contact from the phonebook.
- **`exit_program(int)`**: Exits the program.
## License
This project is licensed under the MIT License - see the [LICENSE](../LICENSE) file for details.