hello.c 830 B

12345678910111213141516171819202122232425262728293031323334
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. #include "prescheme.h"
  5. long main(long, char**);
  6. long main(long argc_0X, char **argv_1X)
  7. {
  8. FILE * out_3X;
  9. FILE * out_2X;
  10. { if ((2 == argc_0X)) {
  11. out_2X = stdout;
  12. ps_write_string("Hello, world, ", out_2X);
  13. ps_write_string((*(argv_1X + 1)), out_2X);
  14. { long ignoreXX;
  15. PS_WRITE_CHAR(33, out_2X, ignoreXX) }
  16. { long ignoreXX;
  17. PS_WRITE_CHAR(10, out_2X, ignoreXX) }
  18. return 0;}
  19. else {
  20. out_3X = stderr;
  21. ps_write_string("Usage: ", out_3X);
  22. ps_write_string((*(argv_1X + 0)), out_3X);
  23. ps_write_string(" <user>", out_3X);
  24. { long ignoreXX;
  25. PS_WRITE_CHAR(10, out_3X, ignoreXX) }
  26. ps_write_string(" Greets the world & <user>.", out_3X);
  27. { long ignoreXX;
  28. PS_WRITE_CHAR(10, out_3X, ignoreXX) }
  29. return 1;}}
  30. }