argv__get_arg.c 355 B

1234567891011121314151617
  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 index)
  7. {
  8. const char *result = NULL;
  9. if (this->argc > index)
  10. result = this->argv[index].arg;
  11. return result;
  12. }
  13. /*--------------------------------------------------------- */