diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-10 12:02:10 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-10 12:02:10 +0200 |
| commit | 4ea98362c39d63bbfaef28aa25a1e630e01c5611 (patch) | |
| tree | 58325878046ec59b22cc0012497f220cc04762eb /03_threads/native.c | |
| parent | 18132bf9c9755a7de41a8c89dc6b02409a629cd5 (diff) | |
| download | emscripten-tutorial-master.tar.gz emscripten-tutorial-master.zip | |
Diffstat (limited to '03_threads/native.c')
| -rw-r--r-- | 03_threads/native.c | 10 |
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 | |||
| 3 | int primes_in_range(int, int); | ||
| 4 | |||
| 5 | int 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 | } | ||
