mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
added doxygen documentation
This commit is contained in:
parent
0a85cd0176
commit
e8caf31e0c
@ -1,10 +1,15 @@
|
||||
/**
|
||||
* @file
|
||||
* Compute factorial of arbitrarily large numbers by
|
||||
* storing individual digits in a byte.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "function_timer.h"
|
||||
|
||||
/**
|
||||
* dynamically large number
|
||||
* dynamically large number
|
||||
**/
|
||||
typedef struct _large_num
|
||||
{
|
||||
@ -51,7 +56,7 @@ void add_digit(large_num *num, unsigned int value)
|
||||
}
|
||||
|
||||
/**
|
||||
* multiply large number with another integer and
|
||||
* multiply large number with another integer and
|
||||
* store the result in the same large number
|
||||
**/
|
||||
void multiply(large_num *num, unsigned long n)
|
||||
@ -79,6 +84,9 @@ void multiply(large_num *num, unsigned long n)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* main function
|
||||
*/
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int number, i;
|
||||
|
Loading…
Reference in New Issue
Block a user