C: sum of multiples + complex numbers

This commit is contained in:
2021-08-15 16:58:11 +02:00
parent ccb96a4f2a
commit e357f5c26a
12 changed files with 546 additions and 5 deletions

View 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