{"id":13530969,"url":"https://github.com/codeplea/hexembed","last_synced_at":"2025-04-30T23:33:35.831Z","repository":{"id":110397533,"uuid":"141734838","full_name":"codeplea/hexembed","owner":"codeplea","description":"A small utility to embed files into C or C++ programs.","archived":false,"fork":false,"pushed_at":"2018-07-20T17:48:01.000Z","size":6,"stargazers_count":47,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-02T17:36:35.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codeplea.com/embedding-files-in-c-programs","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeplea.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}},"created_at":"2018-07-20T16:32:25.000Z","updated_at":"2024-08-27T07:05:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"54adc302-dda8-4a28-8cab-59bd85445c68","html_url":"https://github.com/codeplea/hexembed","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/codeplea%2Fhexembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fhexembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fhexembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fhexembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeplea","download_url":"https://codeload.github.com/codeplea/hexembed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224227289,"owners_count":17276773,"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":[],"created_at":"2024-08-01T07:00:58.582Z","updated_at":"2024-11-12T06:23:06.654Z","avatar_url":"https://github.com/codeplea.png","language":"C","readme":"\n# hexembed\n\nhexembed is a very small utility to help embed files in C or C++ programs in an easy, cross-platform way.\n\n## Usage\n\n```\n\u003e gcc hexembed.c -o hexembed\n\u003e hexembed some_file.jpg \u003e some_file.c\n\u003e cat some_file.c\n\n/* Embedded file: some_file.jpg */\nconst int fsize = 1873;\nconst unsigned char *file = {\n0x2f,0x2a,0x0a,0x20,0x2a,0x20,0x68,0x65,0x78,0x65,0x6d,0x62,0x65,0x64,0x20,0x2d,\n0x20,0x61,0x20,0x73,0x69,0x6d,0x70,0x6c,0x65,0x20,0x75,0x74,0x69,0x6c,0x69,0x74,\n0x79,0x20,0x74,0x6f,0x20,0x68,0x65,0x6c,0x70,0x20,0x65,0x6d,0x62,0x65,0x64,0x20,\n0x66,0x69,0x6c,0x65,0x73,0x20,0x69,0x6e,0x20,0x43,0x20,0x70,0x72,0x6f,0x67,0x72,\n    ...\n};\n```\n\nNow you can simply `#include \"some_file.c\"` file in your program, and you have access to that file's data.\n\n\nYou can find more info and alternative methods here: https://codeplea.com/embedding-files-in-c-programs\n","funding_links":[],"categories":["Tools","Libraries"],"sub_categories":["C"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Fhexembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeplea%2Fhexembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Fhexembed/lists"}