{"id":15762178,"url":"https://github.com/harshkapadia2/phone-book","last_synced_at":"2026-01-20T18:55:54.625Z","repository":{"id":135897602,"uuid":"583510634","full_name":"HarshKapadia2/phone-book","owner":"HarshKapadia2","description":"A simple persistent command-line phone book in C.","archived":false,"fork":false,"pushed_at":"2023-02-05T14:37:44.000Z","size":34,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T11:28:58.003Z","etag":null,"topics":["c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HarshKapadia2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-30T01:54:24.000Z","updated_at":"2023-02-24T18:59:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"d528916a-4568-4d52-8b81-27bcedb88f9c","html_url":"https://github.com/HarshKapadia2/phone-book","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"d7b602666b70bc5d52735410ba8786eefe1ead26"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HarshKapadia2/phone-book","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fphone-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fphone-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fphone-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fphone-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarshKapadia2","download_url":"https://codeload.github.com/HarshKapadia2/phone-book/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fphone-book/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c"],"created_at":"2024-10-04T11:07:31.605Z","updated_at":"2026-01-20T18:55:54.598Z","avatar_url":"https://github.com/HarshKapadia2.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phone Book\n\nA simple command-line implementation of a persistent phone book in C to re-familiarize myself with the basics of C.\n\n\u003e NOTE:\n\u003e\n\u003e -   The program might contain some unnecessary code constructs, but they were added to familiarize myself with them.\n\u003e -   Sample phone record format in [phone-book-records.sample.txt](phone-book-records.sample.txt).\n\u003e -   Credits to [Siddharth Bhatia](https://github.com/welding-torch) for making me aware of [github.com/Alkaison/Projects-in-C](https://github.com/Alkaison/Projects-in-C#5-phonebook---code-here).\n\n## Execution Instructions\n\nIn the project's root directory, please execute the following commands:\n\n```shell\n$ gcc phone-book.c -o pb\n$ ./pb\n```\n\nThe above commands can be executed in [Gitpod](https://gitpod.io) as well:\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/HarshKapadia2/phone-book)\n\n## Features\n\n-   ✔️ Add a phone record\n-   ✔️ Display all phone records\n-   ✔️ Find a phone record based on an e-mail\n-   ❌ Find phone record(s) based on a first name\n-   ❌ Delete a phone record\n-   ❌ Update a phone record\n-   ✔️ Display phone book command help\n\n## Sample Program\n\n\u003e Executed in Gitpod.\n\n```bash\ngitpod /workspace/phone-book (main) $ gcc phone-book.c -o pb\ngitpod /workspace/phone-book (main) $ ./pb\nPhone Book\n\nUse 'pb help' for usage.\n\n$ pb help\nUsage: pb [TYPE] [FLAG]... [DATA]...\nUse the phone book to add, update, delete or find records.\n\nNOTE:\n- e-mail IDs are unique, so duplicate e-mail IDs are not allowed.\n- Commands are whitespace-sensitive, so data should not contain whitespaces.\n\nActions:\n- Display all records: pb display\n- Add a record: pb add \u003cfirst_name\u003e \u003clast_name\u003e \u003cunique_email\u003e \u003cphone_number\u003e\n- Find a record using an e-mail: pb find -e \u003cemail_of_record_to_find\u003e\n- (To do) Update a record: pb update \u003cfirst_name\u003e \u003clast_name\u003e \u003cemail_of_record_to_update\u003e \u003cphone_number\u003e\n- (To do) Delete a record: pb delete \u003cemail_of_record_to_delete\u003e\n- (To do) Find record(s) using a first name: pb find -n \u003cfirst_name_of_records_to_find\u003e\n- Exit phone book: pb exit\n- Display command help: pb help\n\nEg:\npb add selena gomez sg@selenagomez.com +1(xxx)xxx-xxxx\n\n$ pb add selena gomez sg@selenagomez.com +1(xxx)xxx-xxxx\nRecord added to phone book.\n\n$ pb find -e sg@selenagomez.com\nFirst name: selena\nLast name: gomez\ne-mail: sg@selenagomez.com\nPhone no.: +1(xxx)xxx-xxxx\n\n$ pb add lucas scheppingen\nInsufficient number of parameters passed. Expected 4 parameter(s), but got 2. Use 'pb help' for usage.\nThe phone record could not be added to the phone book.\n\n$ pb add lucas scheppingen lbl@laidbackluke.com +1xxxxxxxxxx\nRecord added to phone book.\n\n$ pb display\nFirst name: selena\nLast name: gomez\ne-mail: sg@selenagomez.com\nPhone no.: +1(xxx)xxx-xxxx\n---\nFirst name: lucas\nLast name: scheppingen\ne-mail: lbl@laidbackluke.com\nPhone no.: +1xxxxxxxxxx\n---\n\n$ pb exit\nPhone book shut down.\ngitpod /workspace/phone-book (main) $\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshkapadia2%2Fphone-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshkapadia2%2Fphone-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshkapadia2%2Fphone-book/lists"}