{"id":13420823,"url":"https://github.com/jimlawless/map_lib","last_synced_at":"2026-01-16T12:28:37.655Z","repository":{"id":114217864,"uuid":"54790504","full_name":"jimlawless/map_lib","owner":"jimlawless","description":"An associative-array library written in C.","archived":false,"fork":false,"pushed_at":"2021-07-09T15:08:33.000Z","size":20,"stargazers_count":16,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T22:56:44.122Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimlawless.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":"2016-03-26T17:22:50.000Z","updated_at":"2023-11-14T21:32:34.000Z","dependencies_parsed_at":"2023-05-30T22:15:49.190Z","dependency_job_id":null,"html_url":"https://github.com/jimlawless/map_lib","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/jimlawless%2Fmap_lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimlawless%2Fmap_lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimlawless%2Fmap_lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimlawless%2Fmap_lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimlawless","download_url":"https://codeload.github.com/jimlawless/map_lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701225,"owners_count":20333614,"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-07-30T22:01:42.180Z","updated_at":"2026-01-16T12:28:37.647Z","avatar_url":"https://github.com/jimlawless.png","language":"C","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"readme":"# map_lib\nAn associative-array library written in C.\n\nPlease see the blog post at: https://lawlessguy.wordpress.com/2016/02/11/a-simple-associative-array-library-in-c/\n\nHave fun. I hope you find this little library useful.\n\n# Error checks and some code revamping - July 2021\nA couple of issues had been brought to my attention.  One pertained to the lack of NULL checks.  Another pointed out that I should really update the function signatures so that they properly reflected the access types of the char pointers being passed into the functions.\n\nI revamped the primary data structure, *struct map_t*, so that no longer served as a node in a link list.  A new data structure, *struct map_link_t*, was created as a replacement.  *struct map_t* now acts as an anchor point for the list.  It also houses error code and error line information for errors that occur in the function calls. I didn't want to write error messages to stderr directly or anything like that, so the approach is to call a function and then to check the *error_code* value upon return.  If the error_code entry is zero, the function should have succeeded.  Please refer to the test program map_stuff.c to see how the error checks have been instrumented into the calling code.\n\nI also added the functoin *map_destroy()* which will remove all of the strings in the linked list, the links, and the anchoring map_t structure.\n\nI added a Windows batch file *map_comp.bat* as I no longer have a working Mac to use to compile that version of the library.\n\n# I restored some old code - October 2018\nSome time ago, I overlaid the original sources for the library and I had gotten rid of the git repo that held them. The files that had been hosted here for a while were a work-in-progress that ... well ... didn't work.\n\nI was able to pull the original sources from the Wayback Machine tonight.  I had to make a few mods ... adapting the Windows-specific stuff to something that is more Mac-centric.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlawless%2Fmap_lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimlawless%2Fmap_lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlawless%2Fmap_lib/lists"}