Last active
August 29, 2015 14:02
-
-
Save kuc-arc-f/f22f32d2024bcc704a5b to your computer and use it in GitHub Desktop.
sample, asm.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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