mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
add params and returns to factorial_large_number
This commit is contained in:
parent
8687bb4746
commit
ba90b68190
@ -18,6 +18,7 @@ typedef struct _large_num
|
||||
|
||||
/**
|
||||
* create a new large number
|
||||
* \returns pointer to a large number
|
||||
**/
|
||||
large_num *new_number(void)
|
||||
{
|
||||
@ -30,6 +31,7 @@ large_num *new_number(void)
|
||||
|
||||
/**
|
||||
* delete all memory allocated for large number
|
||||
* \param[in] num pointer to large_num to delete
|
||||
**/
|
||||
void delete_number(large_num *num)
|
||||
{
|
||||
@ -39,6 +41,8 @@ void delete_number(large_num *num)
|
||||
|
||||
/**
|
||||
* add a digit to the large number
|
||||
* \param[in,out] num
|
||||
* \param[in] value value of the digit to insert
|
||||
**/
|
||||
void add_digit(large_num *num, unsigned int value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user