pcp-htop.c 557 B

123456789101112131415161718192021222324252627
  1. /*
  2. htop - pcp-htop.c
  3. (C) 2004-2011 Hisham H. Muhammad
  4. (C) 2020-2021 htop dev team
  5. Released under the GNU GPLv2+, see the COPYING file
  6. in the source distribution for its full text.
  7. */
  8. #include "config.h" // IWYU pragma: keep
  9. #include <pcp/pmapi.h>
  10. #include "CommandLine.h"
  11. #include "Platform.h"
  12. const char* program = "pcp-htop";
  13. int main(int argc, char** argv) {
  14. pmSetProgname(program);
  15. /* extract environment variables */
  16. opts.flags |= PM_OPTFLAG_ENV_ONLY;
  17. (void)pmGetOptions(argc, argv, &opts);
  18. return CommandLine_run(argc, argv);
  19. }