mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
updated with the suggested changes
This commit is contained in:
parent
5e11041d41
commit
19fb5ba4dd
@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @brief Convert octal number to decimal number
|
||||
* @param octalValue is the octal number that needs to be converted
|
||||
* @returns A decimal number after conversion
|
||||
* @returns a decimal number after conversion
|
||||
*/
|
||||
long octalToDecimal(long octalValue){
|
||||
long decimalValue = 0;
|
||||
@ -31,7 +31,7 @@ long octalToDecimal(long octalValue){
|
||||
/**
|
||||
* @brief Convert octal number to hexadecimal number
|
||||
* @param octalValue is the octal number that needs to be converted
|
||||
* @returns A hexadecimal value as a string after conversion
|
||||
* @returns a hexadecimal value as a string after conversion
|
||||
*/
|
||||
char *octalToHexadecimal(long octalValue){
|
||||
char *hexadecimalValue = malloc(256 * sizeof(char));
|
||||
|
Loading…
Reference in New Issue
Block a user