{"id":24082179,"url":"https://github.com/levidurfee/lol_lib","last_synced_at":"2026-06-12T08:31:07.640Z","repository":{"id":100064375,"uuid":"65637887","full_name":"levidurfee/lol_lib","owner":"levidurfee","description":"C library for stuff I frequently do","archived":false,"fork":false,"pushed_at":"2016-10-24T00:30:20.000Z","size":9916,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T00:50:18.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://levi.lol/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levidurfee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2016-08-13T21:35:09.000Z","updated_at":"2016-10-22T16:42:33.000Z","dependencies_parsed_at":"2023-05-12T01:15:38.414Z","dependency_job_id":null,"html_url":"https://github.com/levidurfee/lol_lib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/levidurfee/lol_lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Flol_lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Flol_lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Flol_lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Flol_lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levidurfee","download_url":"https://codeload.github.com/levidurfee/lol_lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Flol_lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-09T23:45:43.698Z","updated_at":"2026-06-12T08:31:07.633Z","avatar_url":"https://github.com/levidurfee.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lol lib\n\n\u003e old code had a lot of memory leaks, so i am redoing it from scratch, testing it as i go\n\ni've been reading books on C that will hopefully help me develop a more solid library.\n\n## examples\n\n```c\n/* prime stuff */\nsize_t p_size = 256;\n//char entropy[ent];\nint i;\nchar prime[p_size];\nsrand(time(NULL)); // feed the machine\nfor(i=0;i\u003c2;i++) {\n    if(l_rand_entropy(ent, entropy)) {\n        printf(\"Entropy: %s\\n\", entropy);\n    }\n}\nfor(i=0;i\u003c5;i++) {\n    l_prime(p_size, prime, 0);\n    printf(\"%s\\n\\n\", prime);\n}\n```\n\n## testing\n\n### valgrind\n\n```bash\nclear;make clean;make;valgrind --track-origins=yes ./lol\nclear;make clean;make;valgrind --suppressions=/home/levi/valgrind.suppressions ./lol\n```\n\n### top\n\n```bash\ntop -b -n 1 |grep lol\n```\n\n## useful links\n\n* http://www.thegeekstuff.com/2011/12/c-socket-programming/\n* https://computing.llnl.gov/tutorials/pthreads/\n* http://www.asciitable.com/index/asciifull.gif\n* http://stackoverflow.com/questions/2426277/how-free-works-when-pointer-is-incremented\n* http://stackoverflow.com/questions/1963780/when-should-i-use-malloc-in-c-and-when-dont-i\n* http://www.cs.bu.edu/teaching/cpp/string/array-vs-ptr/\n* https://wiki.openssl.org/index.php/Main_Page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidurfee%2Flol_lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevidurfee%2Flol_lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidurfee%2Flol_lib/lists"}