{"id":21029479,"url":"https://github.com/lostsh/base-converter","last_synced_at":"2025-09-02T00:39:52.181Z","repository":{"id":228547517,"uuid":"620753928","full_name":"lostsh/base-converter","owner":"lostsh","description":"Computer Organization \u0026 Architecture : Assignment 01. Converter any base to any base. Using only high level primitives","archived":false,"fork":false,"pushed_at":"2023-03-31T14:28:47.000Z","size":15617,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T05:53:52.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-03-29T10:00:12.000Z","updated_at":"2024-03-19T08:56:24.000Z","dependencies_parsed_at":"2024-03-19T11:09:13.614Z","dependency_job_id":null,"html_url":"https://github.com/lostsh/base-converter","commit_stats":null,"previous_names":["lostsh/base-converter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lostsh/base-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fbase-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fbase-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fbase-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fbase-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostsh","download_url":"https://codeload.github.com/lostsh/base-converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsh%2Fbase-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273213951,"owners_count":25065059,"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-01T02:00:09.058Z","response_time":120,"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":[],"created_at":"2024-11-19T12:12:51.480Z","updated_at":"2025-09-02T00:39:52.150Z","avatar_url":"https://github.com/lostsh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Computer Organization and Architecture - Assignment 01 _[Numerical base converter]_\n\n## Requirements\n\n|   Techno   | Version |\n|:----------:|---------|\n|    C       |   C99   |\n|    gcc     |   11    |\n|    make    |   4.2   | \n\n*Possible to use without `make`*\n\n\u003e System libs requirements\n\u003e - `stdlib.h`\n\u003e - `stdio.h`\n\n\u003e\u003e Custom embedded libs\n\u003e\u003e - `input.h` : User input management system.\n\u003e\u003e - `str.h` : Lightweight simple string management system.\n\u003e\u003e - `convert.h` : Module containing the numeric conversion functions between bases.\n\n### Structure\n```bash\n.\n├── bin\n├── demo.mp4\n├── doc\n├── Doxyfile\n├── Makefile\n├── README.md\n└── src\n    ├── convert.c\n    ├── convert.h\n    ├── input.c\n    ├── input.h\n    ├── main.c\n    ├── str.c\n    └── str.h\n\n3 directories, 11 files\n```\n\n## Getting Started\n\n### Compile **With `make`**\n\u003e Go to the root folder which contains the `Makefile` and the `src` folder.\n\nJust type the make command :\n```bash\nmake\n```\n*Generates the executable in the `bin` folder.*\n\n### Compile **Without `make`**\nJust type the make command :\n```bash\ngcc -g -std=c99 src/str.c src/input.c src/convert.c src/main.c -o bin/main\n```\n*Generates the executable in the `bin` folder.*\n\n### Run\n\u003e Once the compilation has been validated, all that remains is to execute the compiled file which is in the `bin` folder.\nJust type the make command :\n```bash\n./bin/main\n```\n\n### How to use\nThe program takes the operating mode as a parameter. There are two modes: Conversion from decimal base to a given base. Conversion from a given base to the decimal base.\n\nTwo modes of use redirect the output of a command via the pipe, or directly launch the program and enter the values.\n\n```bash\n# Using the pipe :\necho \"5 2\" | ./bin/main --from-decimal-to-any\necho \"0101 2\" | ./bin/main --from-any-to-decimal\n\n# Input during execution :\n./bin/main --from-decimal-to-any\n5 2\n\n./bin/main --from-any-to-decimal\n0101 2\n```\n*Example of input via redirect and vie direct input*\n\n## Example \n![Example of compilation \u0026 input / output](example.png)\n\nYou can watch an example video of how to use the program: [demo.mp4](demo.mp4)\n\n## Troubleshooting","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsh%2Fbase-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostsh%2Fbase-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsh%2Fbase-converter/lists"}