arudradey/fullhtml-storage / emsdk /upstream /emscripten /test /browser_test_hello_world.c
arudradey's picture
download
raw
753 Bytes
/*
* Copyright 2015 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <emscripten.h>
int main() {
EM_ASM({
Module['prints'] = [];
var real = out;
out = function(x) {
real(x);
Module['prints'].push(x);
}
});
printf("Hello, world!\n");
EM_ASM({
if (Module['prints'].length !== 1) throw 'bad length ' + Module['prints'].length;
if (Module['prints'][0] !== 'Hello, world!') throw 'bad contents: ' + Module['prints'][0];
});
#ifdef REPORT_RESULT
REPORT_RESULT(0);
#endif
return 0;
}

Xet Storage Details

Size:
753 Bytes
·
Xet hash:
07f6bc9134f9a26ecb42d99eec651fc76b27da80082a280ce8ca4a965f1a168c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.