Changeset c8891c8 in mainline for uspace/lib/c/generic/adt/dyn_array.c
- Timestamp:
- 2019-08-03T08:26:04Z (6 years ago)
- Children:
- d7c5fc0
- Parents:
- 62d3d87
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-04-22 17:50:20)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 08:26:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/dyn_array.c
r62d3d87 rc8891c8 91 91 } 92 92 93 void *_dyn_array_get(dyn_array_t *da, size_t index)94 {95 assert(index < da->size);96 return da->_data + (index * da->_item_size);97 }98 99 93 /** Grows/shrinks array so that it effeciently stores desired capacity 100 94 *
Note:
See TracChangeset
for help on using the changeset viewer.