~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/hello_world_exit.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include<stdio.h>
 
2
#include<stdlib.h>
 
3
 
 
4
int main(int argc, char **argv) {
 
5
  printf("argc: %d\n", argc);
 
6
  for(int i = 0; i < argc; ++i) {
 
7
    printf("argv[%d]: %s\n", i, argv[i]);
 
8
  }
 
9
  if (argc <= 1)
 
10
    exit(1);
 
11
  printf("hello, world!\n");
 
12
  fprintf(stderr, "hello, error stream!\n");
 
13
  exit(100);
 
14
}
 
15