|
Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
#include <stdio.h>#include <stdlib.h>Functions | |
| long long int | get_product (FILE *fp, long start_pos, int num_digits) |
| Compute the product of two numbers in a file. More... | |
| int | main (int argc, char *argv[]) |
| Main function. | |
Problem 8 solution
| long long int get_product | ( | FILE * | fp, |
| long | start_pos, | ||
| int | num_digits | ||
| ) |
Compute the product of two numbers in a file.
| [in] | fp | pointer to file that is already open |
| [in] | start_pos | line number of the first numer |
| [in] | num_digits | number of digits on the line to multiply |