Lines Matching refs:idx
24 int DynDelete(obj, idx) in DynDelete() argument
26 int idx;
28 if (idx < 0) {
30 fprintf(stderr, "dyn: delete: bad index %d\n", idx);
34 if (idx >= obj->num_el) {
41 if (idx == obj->num_el-1) {
45 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
56 obj->el_size*(obj->num_el - idx), obj->array,
57 (idx+1)*obj->el_size, idx*obj->el_size);
60 memmove(obj->array + idx*obj->el_size,
61 obj->array + (idx+1)*obj->el_size,
62 obj->el_size*(obj->num_el - idx));
64 bcopy(obj->array + (idx+1)*obj->el_size,
65 obj->array + idx*obj->el_size,
66 obj->el_size*(obj->num_el - idx));