C: sum of multiples + complex numbers
This commit is contained in:
21
c/sum-of-multiples/src/sum_of_multiples.h
Executable file
21
c/sum-of-multiples/src/sum_of_multiples.h
Executable file
@@ -0,0 +1,21 @@
|
||||
#ifndef SUM_OF_MULTIPLES_H
|
||||
#define SUM_OF_MULTIPLES_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
unsigned int sum(const unsigned int *factors,
|
||||
const size_t number_of_factors, const unsigned int limit);
|
||||
|
||||
/* See GNUmakefile below for explanation
|
||||
* https://github.com/braoult/exercism/blob/master/c/templates/GNUmakefile
|
||||
*/
|
||||
#if defined UNIT_TEST || defined DEBUG
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifdef TESTALL
|
||||
#undef TEST_IGNORE
|
||||
#define TEST_IGNORE() {}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user