hello.c 964 B

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