{"id":48549941,"url":"https://github.com/david2261/c_zen","last_synced_at":"2026-04-08T08:03:26.229Z","repository":{"id":49193288,"uuid":"498874071","full_name":"David2261/C_Zen","owner":"David2261","description":"Basics of understanding C language by studying data types, functions, loops, etc...","archived":false,"fork":false,"pushed_at":"2024-03-02T20:59:59.000Z","size":366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-17T02:57:14.108Z","etag":null,"topics":["c","clean-architecture","makefile","nvim"],"latest_commit_sha":null,"homepage":"","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/David2261.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}},"created_at":"2022-06-01T19:35:21.000Z","updated_at":"2024-03-02T20:06:21.000Z","dependencies_parsed_at":"2024-03-02T21:51:02.425Z","dependency_job_id":null,"html_url":"https://github.com/David2261/C_Zen","commit_stats":null,"previous_names":["david2261/c_zen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/David2261/C_Zen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David2261%2FC_Zen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David2261%2FC_Zen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David2261%2FC_Zen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David2261%2FC_Zen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/David2261","download_url":"https://codeload.github.com/David2261/C_Zen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/David2261%2FC_Zen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31545909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"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":["c","clean-architecture","makefile","nvim"],"created_at":"2026-04-08T08:03:01.965Z","updated_at":"2026-04-08T08:03:26.224Z","avatar_url":"https://github.com/David2261.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base_C\r\n\r\n## Tools\r\n- C\r\n- Debian 10.2.1-6\r\n- gcc 10.2.1\r\n- GNU Make 4.3\r\n\r\n## Description\r\n*All programs are written by [ME](https://github.com/David2261 \"Bulat Nasyrov\") in C!\r\nTo compile the file more easily, I wrote a Makefile, with\r\nwhich you can also run programs.\r\nAll binary files are stored in the build directory.*\r\n\r\n## Project structure\r\n- Functions\r\n\t-- Soft\r\n- Lessons\r\n- Math\r\n- SMP\r\n\r\n1. *In the **Functions** directory, simple programs are written thet perform operations such as:\r\nbubble sort, character matching, palidrom, reverse, etc.*\r\n2. *In the **Lessons** directory, written in inside this repository in a file [Readme](./Lessons/README.md)*\r\n3. *In the **Math** directory, simple programs are written thet perform operations such as:\r\naverange size, exponentiation, recursion, etc.*\r\n4. *In the **UsefulExp** directory, various functions from Kernighan Ritchie's book have been written.*\r\n5. *In the **SMP** directory, I wrote simple C function patterens.*\r\n\r\n## Example\r\n\r\n```c\r\nint main() {\r\n    int N = 0;\r\n    if (scanf(\"%d\", \u0026N) != 1 || N \u003c 1) {\r\n        printf(\"n/a\\n\");\r\n        return 1;\r\n    }\r\n    struct Human arr[N];\r\n    \r\n    for (int i = 0; i \u003c N; i++) {\r\n        scanf(\"%s\", arr[i].Name);\r\n        scanf(\"%s\", arr[i].Surname);\r\n        if (scanf(\"%lf\", \u0026arr[i].size) != 1 || arr[i].size \u003c 1) {\r\n            printf(\"n/a\\n\");\r\n            return 1;\r\n        }\r\n    }\r\n    \r\n    char name[100];\r\n    scanf(\"%s\", name);\r\n    \r\n    printf(\"str = %s\\nname = %s\\n\", arr[0].Name, name);\r\n    \r\n    int count = 0;\r\n    double sum = 0;\r\n    \r\n    for (int i = 0; i \u003c N; i++) {\r\n        if (strcmp21(name, arr[i].Name) == 0) {\r\n            count++;\r\n            sum += arr[i].size * 1.0;\r\n            printf(\"%s, \", arr[i].Surname);\r\n        }\r\n    }\r\n    printf(\"\\b\\b\");\r\n    printf(\" : %0.lf\\n\", (sum / count));\r\n    \r\n    return 0;\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid2261%2Fc_zen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid2261%2Fc_zen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid2261%2Fc_zen/lists"}