{"action":"reopened","issue":{"url":"https://api.github.com/repos/WebAssembly/binaryen/issues/639","repository_url":"https://api.github.com/repos/WebAssembly/binaryen","labels_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/639/comments","events_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/639/events","html_url":"https://github.com/WebAssembly/binaryen/issues/639","id":165851797,"number":639,"title":"Cannot compile simple C program to webassembly/asm.js","user":{"login":"parulkhanna","id":6426212,"avatar_url":"https://avatars.githubusercontent.com/u/6426212?v=3","gravatar_id":"","url":"https://api.github.com/users/parulkhanna","html_url":"https://github.com/parulkhanna","followers_url":"https://api.github.com/users/parulkhanna/followers","following_url":"https://api.github.com/users/parulkhanna/following{/other_user}","gists_url":"https://api.github.com/users/parulkhanna/gists{/gist_id}","starred_url":"https://api.github.com/users/parulkhanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parulkhanna/subscriptions","organizations_url":"https://api.github.com/users/parulkhanna/orgs","repos_url":"https://api.github.com/users/parulkhanna/repos","events_url":"https://api.github.com/users/parulkhanna/events{/privacy}","received_events_url":"https://api.github.com/users/parulkhanna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T18:40:11Z","updated_at":"2016-07-28T22:23:52Z","closed_at":null,"body":"Hi,\r\n\r\n```\r\nThis is my C code which I am trying to compile using \r\nParuls-MacBook-Pro:sample parulkhanna$ emcc helloworld.c -s BINARYEN=1 \r\nParuls-MacBook-Pro:sample parulkhanna$ node a.out.js \r\ntrying binaryen method: native-wasm\r\nno native wasm support detected\r\ntrying binaryen method: interpret-binary\r\nbinaryen method succeeded.\r\nHello world\r\nParuls-MacBook-Pro:sample parulkhanna$ \r\n```\r\n**It does not creates text file as specified in my C code** \r\n```\r\nThis is the code for C file\r\n#include <stdio.h>\r\n\r\nint main()\r\n{\r\n  FILE *test;\r\n  test = fopen(\"parul.txt\", \"w\");\r\n  fprintf(test, \"%s\", \"hello world\");\r\n  fclose(test);\r\n  printf(\"Hello world\\n\");\r\n  return 0;\r\n}\r\n```\r\nIs it normal, \r\n<img width=\"1240\" alt=\"screen shot 2016-07-15 at 2 39 55 pm\" src=\"https://cloud.githubusercontent.com/assets/6426212/16884924/07963c04-4a9a-11e6-9dac-d7db0e7b4ba0.png\">\r\n\r\nThanks,\r\n\r\n"}}
{"actor":{"display_login":"parulkhanna"}}