argv__get_arg.c 385 B

12345678910111213141516171819
  1. /*
  2. * argv__get_arg.c
  3. */
  4. #include "private.h"
  5. /*--------------------------------------------------------- */
  6. const char *lub_argv__get_arg(const lub_argv_t *this, unsigned int index)
  7. {
  8. const char *result = NULL;
  9. if (!this)
  10. return NULL;
  11. if (this->argc > index)
  12. result = this->argv[index].arg;
  13. return result;
  14. }
  15. /*--------------------------------------------------------- */