mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-30 23:02:06 +00:00
Isolated emscripten in new lib
This commit is contained in:
17
lib/emscripten/emtests/test_sscanf_float.c
Normal file
17
lib/emscripten/emtests/test_sscanf_float.c
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2016 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"
|
||||
|
||||
int main() {
|
||||
float f1, f2, f3, f4, f5, f6, f7, f8, f9;
|
||||
sscanf("0.512 0.250x5.129_-9.98 1.12*+54.32E3 +54.32E3^87.5E-3 87.5E-3$",
|
||||
"%f %fx%f_%f %f*%f %f^%f %f$", &f1, &f2, &f3, &f4, &f5, &f6, &f7, &f8,
|
||||
&f9);
|
||||
printf("\n%f, %f, %f, %f, %f, %f, %f, %f, %f\n", f1, f2, f3, f4, f5, f6, f7,
|
||||
f8, f9);
|
||||
}
|
Reference in New Issue
Block a user