aboutsummaryrefslogtreecommitdiff
path: root/03_threads/native.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-10 12:02:10 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-10 12:02:10 +0200
commit4ea98362c39d63bbfaef28aa25a1e630e01c5611 (patch)
tree58325878046ec59b22cc0012497f220cc04762eb /03_threads/native.c
parent18132bf9c9755a7de41a8c89dc6b02409a629cd5 (diff)
downloademscripten-tutorial-4ea98362c39d63bbfaef28aa25a1e630e01c5611.tar.gz
emscripten-tutorial-4ea98362c39d63bbfaef28aa25a1e630e01c5611.zip
Added native exampleHEADmaster
Diffstat (limited to '')
-rw-r--r--03_threads/native.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/03_threads/native.c b/03_threads/native.c
new file mode 100644
index 0000000..4a3d4fa
--- /dev/null
+++ b/03_threads/native.c
@@ -0,0 +1,10 @@
1#include <stdio.h>
2
3int primes_in_range(int, int);
4
5int main() {
6 int low = 1;
7 int high = 10000000;
8 int result = primes_in_range(low, high);
9 printf("There are %d primes between %d and %d\n", result, low, high);
10}

Generated with cgit - Back to sebastiano.tronto.net