argv__get_arg.c 406 B

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