{"id":30878909,"url":"https://github.com/sandra1me/c-unit-converter","last_synced_at":"2025-09-08T05:48:53.865Z","repository":{"id":308720613,"uuid":"1033839636","full_name":"Sandra1me/C-Unit-Converter","owner":"Sandra1me","description":"This is a command-line program written in C that allows you to convert between different types of physical units: temperature, distance, pressure, weight, and volume. It is a simple and educational tool that demonstrates the use of control structures, functions, and input validation in C.","archived":false,"fork":false,"pushed_at":"2025-09-03T17:28:53.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-03T19:32:11.240Z","etag":null,"topics":["beginner-project","c","command-line-tool","console-application","control-structures","conversion-tool","distance-conversion","educational","functions-in-c","input-validation","pressure-conversion","temperature-conversion","unit-converter","volume-conversion","weight-conversion"],"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/Sandra1me.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,"zenodo":null}},"created_at":"2025-08-07T12:30:02.000Z","updated_at":"2025-09-03T17:28:57.000Z","dependencies_parsed_at":"2025-08-07T19:15:39.980Z","dependency_job_id":null,"html_url":"https://github.com/Sandra1me/C-Unit-Converter","commit_stats":null,"previous_names":["sandra1me/c-unit-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sandra1me/C-Unit-Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sandra1me%2FC-Unit-Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sandra1me%2FC-Unit-Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sandra1me%2FC-Unit-Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sandra1me%2FC-Unit-Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sandra1me","download_url":"https://codeload.github.com/Sandra1me/C-Unit-Converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sandra1me%2FC-Unit-Converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274140322,"owners_count":25229139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["beginner-project","c","command-line-tool","console-application","control-structures","conversion-tool","distance-conversion","educational","functions-in-c","input-validation","pressure-conversion","temperature-conversion","unit-converter","volume-conversion","weight-conversion"],"created_at":"2025-09-08T05:48:48.583Z","updated_at":"2025-09-08T05:48:53.855Z","avatar_url":"https://github.com/Sandra1me.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Converter (C)\n\nThis is a command-line program written in C that allows you to convert between different types of physical units: temperature, distance, pressure, weight, and volume. It is a simple and educational tool that demonstrates the use of control structures, functions, and input validation in C.\n\n## Compilation\n\nYou can compile the program using `gcc`:\n\n```c\ngcc conversor.c -o conversor\n```\n\n## Usage\n\nAfter compiling, run the program from your terminal:\n\n```c\n./conversor\n```\n\nAn interactive menu like this will appear:\n\n\u003cimg width=\"372\" height=\"190\" alt=\"initial menu\" src=\"https://github.com/user-attachments/assets/5a31f6c6-f673-4bd9-970e-29d9b5d2928f\" /\u003e\n\nAfter choosing the type of conversion, a submenu will appear with the available conversion options. For example, for temperature:\n\n\u003cimg width=\"156\" height=\"54\" alt=\"temperature menu\" src=\"https://github.com/user-attachments/assets/cbfa9f9b-391b-48dc-9a27-bdbdc13c6ecc\" /\u003e\n\nThe program will ask you for a value to convert and will display the result.\n\n## Features\n\n- Temperature conversion: ºC ↔ ºF\n- Distance conversion: km ↔ miles, m ↔ ft\n- Pressure conversion: Pa ↔ atm\n- Weight conversion: kg ↔ lb\n- Volume conversion: L ↔ gal\n- Conversion loop: repeat as many times as the user wants\n- Input validation: handles invalid numbers and menu options gracefully\n\n## Sample Output\n\n\u003cimg width=\"428\" height=\"380\" alt=\"sample output\" src=\"https://github.com/user-attachments/assets/f9cca0b6-bed4-4977-8669-0fe42a61bd7c\" /\u003e\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandra1me%2Fc-unit-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandra1me%2Fc-unit-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandra1me%2Fc-unit-converter/lists"}