mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-23 05:49:37 +00:00
[PR #1336] fix: hexadecimal_to_octal.c #1938
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?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1336
State: closed
Merged: No
Description of Change
Fix to Issue #1330
I've made the following changes:
Removed the newline character from the input string.
Improved the binary to octal conversion loop.
Added a return statement after printing an error message for invalid hexadecimal input.
References
Checklist
Notes: