[PR #893] [CLOSED] feat: add info calculator for various stats of an ip address #1410

Open
opened 2026-01-29 15:20:18 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/893
Author: @Lockna
Created: 10/17/2021
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • c4fda39 feat: add info displayer for various stats of an ip address
  • fe4c683 Review: Change pow implementation used
  • 40dcf7a Review: Replace hand unrolled loop with nested for

📊 Changes

1 file changed (+134 additions, -0 deletions)

View changed files

misc/ip_calc.c (+134 -0)

📄 Description

Description of Change

This pull requests adds a little program which calculates and displays various things of an ip address when entered with a subnet bitmask. It displays things like network-id, broadcast address, greatest and smallest ip addresses of this subnet and the binary representation of the entered ip address and bitmask.

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/893 **Author:** [@Lockna](https://github.com/Lockna) **Created:** 10/17/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`c4fda39`](https://github.com/TheAlgorithms/C/commit/c4fda39db0aa5ec9899e371bdc965d513bed06bf) feat: add info displayer for various stats of an ip address - [`fe4c683`](https://github.com/TheAlgorithms/C/commit/fe4c683977b2a578f5927a2483d70c2e4607641d) Review: Change pow implementation used - [`40dcf7a`](https://github.com/TheAlgorithms/C/commit/40dcf7aa32143539565e2a4030b39f3b4e2c673d) Review: Replace hand unrolled loop with nested for ### 📊 Changes **1 file changed** (+134 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `misc/ip_calc.c` (+134 -0) </details> ### 📄 Description #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> This pull requests adds a little program which calculates and displays various things of an ip address when entered with a subnet bitmask. It displays things like network-id, broadcast address, greatest and smallest ip addresses of this subnet and the binary representation of the entered ip address and bitmask. #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [ ] Added tests and example, test must pass - [ ] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/893"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:20:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1410