{"id":13730385,"url":"https://github.com/Malvineous/cfgpath","last_synced_at":"2025-05-08T02:32:24.357Z","repository":{"id":10238917,"uuid":"12342542","full_name":"Malvineous/cfgpath","owner":"Malvineous","description":"Cross platform C header for obtaining paths to user configuration files and directories","archived":false,"fork":false,"pushed_at":"2024-04-03T01:01:38.000Z","size":20,"stargazers_count":67,"open_issues_count":8,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T05:51:11.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Malvineous.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}},"created_at":"2013-08-24T11:51:44.000Z","updated_at":"2025-02-13T12:30:39.000Z","dependencies_parsed_at":"2024-11-14T21:31:57.769Z","dependency_job_id":"c94844ba-126f-4b40-baa6-a254b9603ff4","html_url":"https://github.com/Malvineous/cfgpath","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/Malvineous%2Fcfgpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malvineous%2Fcfgpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malvineous%2Fcfgpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Malvineous%2Fcfgpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Malvineous","download_url":"https://codeload.github.com/Malvineous/cfgpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986966,"owners_count":21836266,"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-03T02:01:14.094Z","updated_at":"2025-05-08T02:32:23.944Z","avatar_url":"https://github.com/Malvineous.png","language":"C","readme":"cfgpath.h: Cross platform methods for obtaining paths to configuration files\n============================================================================\nCopyright 2013 Adam Nielsen \u003cmalvineous@shikadi.net\u003e\n\n---\n\nThis is a simple header file that provides a handful of functions to obtain\npaths to configuration files, regardless of the operating system the\napplication is running under.\n\nIt requires no dependencies beyond each platform's standard API.\n\nThis code is placed in the public domain.  You are free to use it for any\npurpose.  If you add new platform support, please contribute a patch!\n\nBasic use:\n\n    #include \"cfgpath.h\"\n    \n    char cfgdir[MAX_PATH];\n    get_user_config_file(cfgdir, sizeof(cfgdir), \"myapp\");\n    if (cfgdir[0] == 0) {\n        printf(\"Unable to find home directory.\\n\");\n        return 1;\n    }\n    printf(\"Saving configuration file to %s\\n\", cfgdir);\n\nTo integrate it into your own project, just copy cfgpath.h.  All the other\nfiles are for testing to make sure it works correctly, so you don't need them\nunless you intend to make changes and send me a patch.\n\nSupported platforms are currently:\n\n  * Linux\n  * Mac OS X\n  * Windows\n\nPatches adding support for more platforms would be greatly appreciated.\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMalvineous%2Fcfgpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMalvineous%2Fcfgpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMalvineous%2Fcfgpath/lists"}