ffempty.cc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. The MIT License (MIT)
  3. Copyright (c) 2013-2016 SRS(ossrs)
  4. Permission is hereby granted, free of charge, to any person obtaining a copy of
  5. this software and associated documentation files (the "Software"), to deal in
  6. the Software without restriction, including without limitation the rights to
  7. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  8. the Software, and to permit persons to whom the Software is furnished to do so,
  9. subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in all
  11. copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  14. FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  15. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  16. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. */
  19. /**
  20. g++ -o ffempty ffempty.cc -g -O0 -ansi
  21. */
  22. #include <stdio.h>
  23. int main(int argc, char** argv)
  24. {
  25. for (int i = 0; i < argc; i++) {
  26. fprintf(stderr, "argv[%d]=%s\n", i, argv[i]);
  27. }
  28. fprintf(stderr, "summary:\n");
  29. for (int i = 0; i < argc; i++) {
  30. fprintf(stderr, "%s ", argv[i]);
  31. }
  32. fprintf(stderr, "\n");
  33. return 0;
  34. }