{"id":16825957,"url":"https://github.com/gvicentin/sc","last_synced_at":"2025-10-09T06:34:53.719Z","repository":{"id":44685444,"uuid":"512455742","full_name":"gvicentin/sc","owner":"gvicentin","description":"Subnet Calculator CLI","archived":false,"fork":false,"pushed_at":"2023-06-27T18:00:05.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T19:47:02.458Z","etag":null,"topics":["c","cli","networking","subnetting"],"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/gvicentin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-07-10T14:26:53.000Z","updated_at":"2023-02-10T19:03:59.000Z","dependencies_parsed_at":"2025-03-17T19:41:53.358Z","dependency_job_id":"5b85feb8-0c89-4508-aeb3-458fc76e637e","html_url":"https://github.com/gvicentin/sc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gvicentin/sc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvicentin%2Fsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvicentin%2Fsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvicentin%2Fsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvicentin%2Fsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gvicentin","download_url":"https://codeload.github.com/gvicentin/sc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gvicentin%2Fsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000819,"owners_count":26082951,"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-10-09T02:00:07.460Z","response_time":59,"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","cli","networking","subnetting"],"created_at":"2024-10-13T11:15:55.277Z","updated_at":"2025-10-09T06:34:53.680Z","avatar_url":"https://github.com/gvicentin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subnet Calculator (sc)\n\n![Latest Release](https://img.shields.io/github/v/release/gvicentin/sc)\n![License](https://img.shields.io/github/license/gvicentin/sc)\n![Build And Tests Status](https://img.shields.io/github/actions/workflow/status/gvicentin/sc/pr-validation.yaml?label=build%20and%20tests\u0026logo=c\u0026logoColor=lightblue)\n\nA command line tool that enables subnet network calculations using **CIDR notation**.\n\nTo use it, you can type your range directly in CIDR notation, and see the IP\ninformation about that range.\n\nThis simple subnet calculator is **written in C**. It was created as a study about using\nbitwise operators and basic IPv4 subnetting (Networking course).\n\n## Installing\n\nCheck the release page if you don't want to build from\nthe source code.\n\n```sh\n# Clone repository and compile\ngit clone https://github.com/gvicentin/sc.git \u0026\u0026 cd sc/\nmake\n```\n\nMake sure to include the binary on your `$PATH`.\nFor example.\n\n```sh\n# Copy binary and create symbolic link\nLOCALBIN=\"${HOME}/.local/bin\"\ncp bin/sc-0.1.0 $LOCALBIN\ncd $LOCALBIN \u0026\u0026 ln -s sc-0.1.0 sc\n```\n\n## Usage\n\nUse the command passing the IP in the CIDR notation,\ne.g. `sc 172.16.65.23/20`.\n\n```sh\nsc 172.16.65.23/20\n====================================\n|            SUBNET CALC           |\n====================================\nIP:                     172.16.65.23\nIP Hex:                     AC104117\nIP Long:                  2886746391\nCIDR Block:           172.16.64.0/20\nBroadcast:             172.16.79.255\n------------------------------------\nMask:                  255.255.240.0\nMask Hex:                   FFFFF000\nMask Long:                4294963200\nMask Bits:                        20\nNum of Hosts:                   4096\n```\n\n\n## Local development\n\nTo run unit tests, simply do the following.\n\n```sh\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvicentin%2Fsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgvicentin%2Fsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvicentin%2Fsc/lists"}