emscripten-tutorial

How to build an increasingly complex C/C++ codebase to WebAssembly
git clone https://git.tronto.net/emscripten-tutorial
Download | Log | Files | Refs | README

native.c (216B)


      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 }