argv__get_offset.c 351 B

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