Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuc-arc-f/f22f32d2024bcc704a5b to your computer and use it in GitHub Desktop.
Save kuc-arc-f/f22f32d2024bcc704a5b to your computer and use it in GitHub Desktop.
sample, asm.js
//export1.c
#include <emscripten.h>
#include <stdio.h>
#include <stdlib.h>
char* ex_func01( int a, float b, const char* c )
{
char *po= (char *)malloc(sizeof(char) * 128 );
sprintf(po, "a=%d ,b=%f ,c=%s\n", a, b, c );
printf( "%d %f %s\n", a, b, c );
return po;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment