aboutsummaryrefslogtreecommitdiff
path: root/06_storage/primes.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-06 09:13:54 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-06 09:13:54 +0200
commitab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0 (patch)
tree76be6a8b1596ea1e74dbf7085b85214c2c83e69a /06_storage/primes.h
parent961c3470d7e9bdf5efbe0509f586be75d7052d8b (diff)
downloademscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.tar.gz
emscripten-tutorial-ab0db69a7b11ba1a9dc52d50c94e9e321b70ebf0.zip
Added example 6
Diffstat (limited to '')
-rw-r--r--06_storage/primes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/06_storage/primes.h b/06_storage/primes.h
new file mode 100644
index 0000000..d9006f7
--- /dev/null
+++ b/06_storage/primes.h
@@ -0,0 +1,12 @@
1#ifndef PRIMES_H
2#define PRIMES_H
3
4#include <limits.h>
5
6#define MAX_PRIME INT_MAX
7#define TABLESIZE (1 << 28)
8
9int primes_in_range(int, int, void (*)(const char *));
10void generate_primes(unsigned char *, void (*)(const char *));
11
12#endif

Generated with cgit - Back to sebastiano.tronto.net