{"id":19577234,"url":"https://github.com/megastep/bin2c","last_synced_at":"2025-04-27T06:32:11.558Z","repository":{"id":11332990,"uuid":"13758241","full_name":"megastep/bin2c","owner":"megastep","description":"Convert binary files to C arrays for easy inclusion with your code.","archived":false,"fork":false,"pushed_at":"2020-02-27T13:37:44.000Z","size":18,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T22:33:21.481Z","etag":null,"topics":["binary","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/megastep.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}},"created_at":"2013-10-21T23:41:04.000Z","updated_at":"2024-12-30T17:24:34.000Z","dependencies_parsed_at":"2022-08-20T11:40:08.270Z","dependency_job_id":null,"html_url":"https://github.com/megastep/bin2c","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/megastep%2Fbin2c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megastep%2Fbin2c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megastep%2Fbin2c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megastep%2Fbin2c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megastep","download_url":"https://codeload.github.com/megastep/bin2c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251098965,"owners_count":21536144,"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":["binary","c"],"created_at":"2024-11-11T07:05:31.467Z","updated_at":"2025-04-27T06:32:11.226Z","avatar_url":"https://github.com/megastep.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"bin2c\n=====\n\nConvert binary files to C arrays for easy inclusion within your existing code.\n\nIt sometimes makes sense to bypass the entire management of binary resources, especially for smaller or more sensitive data files.\nThe data becomes available as a single array (or optionally as a NSString) that can be parsed in memory any way you like.\n\nBuilding\n========\n\nThe project was created in Xcode 5 on Mac OS X but the C file should compile on pretty much any system with an ANSI C compiler.\nIt's also known to work on Gentoo with gcc 5.4.0.\n\n\nUsage\n=====\n\n`bin2c [-i inputfile] [-o output.h] [-l line_len] [-t type] [-hs0] -a array_name`\n-h: show a brief help message\n-s: prepend the 'static' keyword to the generated variables\n-0: when -t char, add a null-char at the end of the array\n\nIf no output file is specified, the C array will be sent on the standard output. Likewise, if no input file is given, data is read from the standard input.\n\n- `array_name` is used to specify the name of the variable.\n- `line_len` specifies how many bytes to put per line in the output (default 80).\n- `type` can be either `char` (default, C array of unsigned char), or `nsstring` (Objective-C `NSString` object).\n\nLicense\n=======\n\nVery liberal - do as you wish with it! Pull requests welcome.\n\nAuthor\n======\n\nStephane Peter\nCatloaf Software, LLC\n\nhttp://github.com/megastep\nhttp://www.catloafsoft.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegastep%2Fbin2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegastep%2Fbin2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegastep%2Fbin2c/lists"}