9

When a C program is compiled with Emscripten, there is an HTML page generated that will display the results of the program. I was wondering how you could pass command line arguments to the application. For instance, with the original C program it's ./bfs 32 1.

1 Answer 1

14

I was able to pass command line arguments by adding a line to the generated .html file. Not sure if this is the correct solution but it worked. There's a var Module declared. simply add the following line underneath: arguments: ['32', '1'],

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.