{"id":20095137,"url":"https://github.com/patilyashh/word-count","last_synced_at":"2025-09-12T02:17:50.020Z","repository":{"id":223322951,"uuid":"759923288","full_name":"PATILYASHH/word-count","owner":"PATILYASHH","description":"Day 9 of 75 Days C programing challenge || #9 ||","archived":false,"fork":false,"pushed_at":"2024-02-19T15:55:35.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T17:05:26.114Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PATILYASHH.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-02-19T15:42:33.000Z","updated_at":"2024-09-24T04:15:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a1b2423-6b36-4841-8caf-92796ea465b9","html_url":"https://github.com/PATILYASHH/word-count","commit_stats":null,"previous_names":["patilyashh/word-count"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PATILYASHH/word-count","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PATILYASHH%2Fword-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PATILYASHH%2Fword-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PATILYASHH%2Fword-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PATILYASHH%2Fword-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PATILYASHH","download_url":"https://codeload.github.com/PATILYASHH/word-count/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PATILYASHH%2Fword-count/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274743221,"owners_count":25341134,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":"2024-11-13T16:54:12.160Z","updated_at":"2025-09-12T02:17:49.999Z","avatar_url":"https://github.com/PATILYASHH.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String Length Calculator\n\n## Description\nThis is a simple C program that prompts the user to enter a text string, calculates the length of the string, and then prints the length. It serves as a basic example of string manipulation in C.\n\n## Getting Started\nTo run this program, you'll need a C compiler installed on your system.\n\n1. Clone this repository or download the `string_length_calculator.c` file.\n2. Open a terminal or command prompt and navigate to the directory where the file is located.\n3. Compile the program using your preferred C compiler. For example:\n   ```bash\n   gcc string_length_calculator.c -o string_length_calculator\n   \n1 . Run the compiled executable:\n```\n./string_length_calculator\n```\n2. Follow the on-screen instructions to enter a text string.\n\n## Example\n```\nEnter Your Text Here : Follow_me\n9\n```\n## Notes\n- This program assumes that the input string will not exceed 99 characters (excluding the null terminator).\n- It uses the `strlen()` function from the `\u003cstring.h\u003e` library to calculate the length of the string.\n\n ## Further Improvements\n- **Error Handling**: Implement error handling to ensure the input string does not exceed the array size.\n- **Buffer Overflow Prevention**: Modify the `scanf()` function to include the maximum length to prevent buffer overflow.\n- **Input Handling**: Consider using `fgets()` to read the input string to handle spaces and avoid buffer overflow.\n- **Code Comments**: Include comments throughout the code to explain the purpose of each section for better readability and maintainability.\n- **Testing**: Thoroughly test the program with various input strings to ensure it behaves as expected under different scenarios.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatilyashh%2Fword-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatilyashh%2Fword-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatilyashh%2Fword-count/lists"}