1
0

argv__get_offset.c 404 B

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