{"id":15706012,"url":"https://github.com/czzonet/bcd","last_synced_at":"2025-03-30T15:45:58.231Z","repository":{"id":118158387,"uuid":"135974821","full_name":"czzonet/BCD","owner":"czzonet","description":"BCD convert","archived":false,"fork":false,"pushed_at":"2018-06-06T08:08:57.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T17:25:42.291Z","etag":null,"topics":["bcd","c"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"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/czzonet.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,"publiccode":null,"codemeta":null}},"created_at":"2018-06-04T05:28:58.000Z","updated_at":"2018-06-06T08:08:58.000Z","dependencies_parsed_at":"2023-11-10T11:48:26.223Z","dependency_job_id":null,"html_url":"https://github.com/czzonet/BCD","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2FBCD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2FBCD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2FBCD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2FBCD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czzonet","download_url":"https://codeload.github.com/czzonet/BCD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342824,"owners_count":20761939,"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","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":["bcd","c"],"created_at":"2024-10-03T20:21:06.690Z","updated_at":"2025-03-30T15:45:58.212Z","avatar_url":"https://github.com/czzonet.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BCD码转换函数 #\n## 使用方法 ##\n拷贝BCD.c,BCD.h至项目文件夹中，并包含BCD.h头文件。\n## 测试用例 ##\ntest_example.c是测试用例，展示了典型使用方法，并在Ubuntu14.04 32位上测试通过。\n\n请使用\n\n`gcc -Wall -std=c99 -o BCD.out BCD.c test_example.c`\n\n进行编译\n\n编译参数说明：使用了c99标准库进行编译，因为程序里使用了uint8_t，是在c99库的stdint.h里的类型定义\n## 原理以及其他 ##\n本质是BCD码这里分字符串和数字两种类型，个人觉得字符串比较好理解。这里的转换因为本质变了，而不属于形式上的转化。\n\n特别注意，BCD数字形式是以0x68的格式出现的，不要误以68的格式输入，这样默认是十进制，是不对的。如果需要十进制输入，必须先转换为104。而最后的结果输出则是十进制哦。\n\n所以本系列函数所做的即是在十六进制BCD码和十进制整数之间的转换\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczzonet%2Fbcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczzonet%2Fbcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczzonet%2Fbcd/lists"}