{"id":19330541,"url":"https://github.com/aventhis/projects_on_c","last_synced_at":"2026-05-16T13:02:55.844Z","repository":{"id":244438649,"uuid":"815234770","full_name":"aventhis/projects_on_c","owner":"aventhis","description":"This repository contains several projects written in the C programming language. Each project demonstrates different aspects of C programming, including working with mathematical libraries, command-line utilities, and more","archived":false,"fork":false,"pushed_at":"2024-09-11T16:06:21.000Z","size":1066,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T16:38:19.986Z","etag":null,"topics":["bash","c","cat","decimal","grep","make","math","math-library","utils"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aventhis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-14T16:41:19.000Z","updated_at":"2024-09-11T16:06:59.000Z","dependencies_parsed_at":"2024-09-11T22:21:14.795Z","dependency_job_id":"98989656-f751-4f5c-acdf-d412e4829ce4","html_url":"https://github.com/aventhis/projects_on_c","commit_stats":null,"previous_names":["aventhis/cat_grep_utils","aventhis/projects_on_c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aventhis/projects_on_c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2Fprojects_on_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2Fprojects_on_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2Fprojects_on_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2Fprojects_on_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aventhis","download_url":"https://codeload.github.com/aventhis/projects_on_c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2Fprojects_on_c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","c","cat","decimal","grep","make","math","math-library","utils"],"created_at":"2024-11-10T02:37:02.031Z","updated_at":"2026-05-16T13:02:55.819Z","avatar_url":"https://github.com/aventhis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projects on C\n\nThis repository contains several projects written in the C programming language. Each project demonstrates different aspects of C programming, including working with mathematical libraries, command-line utilities, and more.\n\n## Contents\n\n1. [s21_decimal](#s21_decimal)\n2. [s21_math](#s21_math)\n3. [s21_string](#s21_string)\n4. [s21_cat](#s21_cat)\n5. [s21_grep](#s21_grep)\n\n## s21_decimal\n\nThe `s21_decimal` project is an implementation of a custom data type `decimal` in C for accurate decimal calculations.\n\n### Key Features\n\n- Implementation of arithmetic operations for decimal numbers such as addition, subtraction, multiplication, and division.\n- Rounding operations, calculating the remainder of division, and changing the sign of a number.\n- Comparison operations: equal, not equal, greater, less, greater or equal, less or equal.\n- Full unit test coverage using the Check library.\n- Generation of code coverage reports using gcov.\n\n### Makefile Targets\n\n- **all**: This target builds the entire project, including compiling all source files and creating executable files.\n- **clean**: This target removes all generated files, such as object files and executables, cleaning the project.\n- **s21_decimal.a**: This target creates the static library `s21_decimal.a` from all project source files.\n- **test**: This target compiles and runs all unit tests to verify the correctness of the library functions.\n- **gcov_report**: This target runs tests with gcov flags and generates a code coverage report in HTML format.\n\n\n## s21_math\n\nThe `s21_math` project is a custom implementation of the standard math.h library in C. This library includes basic mathematical operations used in various algorithms.\n\n### Main Features\n\n- Implementation of mathematical library functions such as `sin`, `cos`, `tan`, `exp`, `log`, and others.\n- Full unit test coverage using the Check library.\n- Code coverage report generation using gcov.\n\n### Makefile Targets Description\n\n- **all**: This target builds the entire project, including compiling all source files and creating executable files.\n- **clean**: This target removes all generated files, such as object files and executables, cleaning the project.\n- **s21_math.a**: This target creates the static library `s21_math.a` from all project source files.\n- **test**: This target compiles and runs all unit tests to verify the correctness of the library functions.\n- **gcov_report**: This target runs tests with gcov flags and generates a code coverage report in HTML format.\n\n## s21_string+\n\nImplementation of the string.h library with enhancements.\n\n### Main Features\n\n- Implementation of the string.h library functions such as `memchr`, `memcmp`, `memcpy`, `memset`, `strncat`, `strchr`, `strncmp`, `strncpy`, `strcspn`, `strerror`, `strlen`, `strpbrk`, `strrchr`, `strstr`, `strtok`.\n- Special string handling functions such as `to_upper`, `to_lower`, `insert`, `trim`.\n- Full unit test coverage using the Check library.\n\n### Makefile Targets Description\n\n- **all**: This target builds the entire project, including compiling all source files and creating executables.\n- **clean**: This target removes all generated files, such as object files and executables, cleaning the project.\n- **s21_string.a**: This target creates the static library `s21_string.a` from all project source files.\n- **test**: This target compiles and runs all unit tests to verify the correctness of the library functions.\n- **gcov_report**: This target runs tests with gcov flags and generates a code coverage report in HTML format.\n\n## s21_cat\n\nThe `s21_cat` project is a C implementation of the `cat` utility, which concatenates and displays file contents.\n\n### Main Features\n\n- Support for standard and additional flags such as `-b`, `-e`, `-n`, `-s`, `-t`.\n\n### Build and Run\n\n1. Build the project:\n   ```sh\n   make all\n\n2. Run the utility:\n    ```sh\n    ./s21_cat [OPTION] [FILE]...\n\n## s21_grep\n\nThe `s21_grep` project is a C implementation of the `grep` utility, which searches for patterns within files.\n\n### Main Features\n\n- Support for flags `-e`, `-i`, `-v`, `-c`, `-l`, `-n`, and others.\n\n### Build and Run\n\n1. Build the project:\n   ```sh\n   make all\n2. Run the utility:\n    ```sh\n    ./s21_grep [OPTION] [PATTERN] [FILE]...\n\n\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faventhis%2Fprojects_on_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faventhis%2Fprojects_on_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faventhis%2Fprojects_on_c/lists"}