{"id":21838320,"url":"https://github.com/elisstaaf/lazy","last_synced_at":"2025-03-21T15:18:27.293Z","repository":{"id":268458798,"uuid":"904413471","full_name":"ElisStaaf/lazy","owner":"ElisStaaf","description":"LazyLib - C functions I don't want to rewrite.","archived":false,"fork":false,"pushed_at":"2025-03-13T19:06:43.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T20:25:43.848Z","etag":null,"topics":["c","c-lib","c-library","lazy","lib","library"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElisStaaf.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":"2024-12-16T20:57:56.000Z","updated_at":"2025-03-13T19:06:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8b9fcb8-9b47-4403-afa2-84f4ca8d6133","html_url":"https://github.com/ElisStaaf/lazy","commit_stats":null,"previous_names":["elisstaaf/lazy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElisStaaf%2Flazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElisStaaf%2Flazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElisStaaf%2Flazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElisStaaf%2Flazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElisStaaf","download_url":"https://codeload.github.com/ElisStaaf/lazy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244819802,"owners_count":20515646,"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":["c","c-lib","c-library","lazy","lib","library"],"created_at":"2024-11-27T21:10:19.466Z","updated_at":"2025-03-21T15:18:27.284Z","avatar_url":"https://github.com/ElisStaaf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lazy\nLazy is basically just a library full of functions I'm too... Well, lazy, to write again.\nWith things like `try/catch` and `vectors` this surely makes it the best library for\nlazy C programmers that have nothing better to do than read a README (like you!).\n\n## History\nSo this thing started back in the 1800s when I was figuring out C for the first time,\nI was frustrated, as C had a minimal standard library. Take that as you will, nowadays\nI quite like the C standard library but back then I despised it, I wanted to create something\nthat you could just *use*, like this:\n```c\n#include \u003cmagical-library-with-solutions-to-everything.h\u003e\n\nint main() {\n    try()\n        println(\"Hello World!\");\n    catch()\n        println(\"NO YOU STUPID IDIOT\");\n        return 1;\n    return 0;\n}\n```\nBasically, a heaven where everything becomes easier, a world were *this*:\n```c\n#include \u003cassert.h\u003e\n#include \u003cctype.h\u003e\n#include \u003cerrno.h\u003e\n#include \u003cfloat.h\u003e\n#include \u003climits.h\u003e\n#include \u003clocale.h\u003e\n#include \u003cmath.h\u003e\n#include \u003csetjmp.h\u003e\n#include \u003csignal.h\u003e\n#include \u003cstdarg.h\u003e\n#include \u003cstddef.h\u003e\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003cstring.h\u003e\n#include \u003ctime.h\u003e\n#include \u003ciso646.h\u003e\n#include \u003cwchar.h\u003e\n#include \u003cwctype.h\u003e\n#include \u003ccomplex.h\u003e\n#include \u003cfenv.h\u003e\n#include \u003cinttypes.h\u003e\n#include \u003cstdbool.h\u003e\n#include \u003cstdint.h\u003e\n#include \u003ctgmath.h\u003e\n#include \u003cstdalign.h\u003e\n#include \u003cstdatomic.h\u003e\n#include \u003cstdnoreturn.h\u003e\n#include \u003cthreads.h\u003e\n#include \u003cuchar.h\u003e\n#include \u003cstdbit.h\u003e\n#include \u003cstdbit.h\u003e\n#include \u003cstdckdint.h\u003e\n```\nBecomes *this*:\n```c\n#include \u003cmagical-library-with-solutions-to-everything.h\u003e /* Maybe I should\n                                                           * come up with a\n                                                           * better name? */\n```\nAnd thus, `lazy(.h)` was born!\n\n## Example\n```c\n#include \u003clazy.h\u003e\n#include \u003cerrno.h\u003e\n#include \u003cassert.h\u003e\n#include \u003cmath.h\u003e\n\nint main(flagargs) {\n    flagzone {\n        flag({\"--debug\", \"-d\"}) {\n            println(\"System: Debug mode activated!\")\n        }\n        flag({\"--die\", \"X_X\"}) {\n            println(\"System: I'm dying nooo X_X\");\n            return -1;\n        }\n    }\n    errno = 0;\n    try {\n        log(0.0);\n    } catch(EDOM) {\n        assert(errno == EDOM);\n    }\n    return 0;\n}\n```\n\n## Install\n```sh\ngit clone https://github.com/ElisStaaf/lazy\ncd lazy\nsudo make\necho \"Enjoy!\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felisstaaf%2Flazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felisstaaf%2Flazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felisstaaf%2Flazy/lists"}