22 lines
480 B
C
Executable File
22 lines
480 B
C
Executable File
#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
|