From e8caf31e0cea268851cf1eddaa22039fbf60533f Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Mon, 25 May 2020 18:33:32 -0400 Subject: [PATCH] added doxygen documentation --- misc/factorial_large_number.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/factorial_large_number.c b/misc/factorial_large_number.c index 9abd4e0f..56e92d39 100644 --- a/misc/factorial_large_number.c +++ b/misc/factorial_large_number.c @@ -1,10 +1,15 @@ +/** + * @file + * Compute factorial of arbitrarily large numbers by + * storing individual digits in a byte. + */ #include #include #include #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;