mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-26 23:39:40 +00:00
[PR #893] [CLOSED] feat: add info calculator for various stats of an ip address #1410
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/893
Author: @Lockna
Created: 10/17/2021
Status: ❌ Closed
Base:
master← Head:master📝 Commits (3)
c4fda39feat: add info displayer for various stats of an ip addressfe4c683Review: Change pow implementation used40dcf7aReview: 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
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.