argv__get_offset.c 355 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. }
  12. return result;
  13. }
  14. /*--------------------------------------------------------- */