added doxygen documentation

This commit is contained in:
Krishna Vedala 2020-05-25 18:33:32 -04:00
parent 0a85cd0176
commit e8caf31e0c
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 10 additions and 2 deletions

View File

@ -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;