Lines Matching refs:idx
25 int DynDelete(obj, idx)
27 int idx;
29 if (idx < 0) {
31 fprintf(stderr, "dyn: delete: bad index %d\n", idx);
35 if (idx >= obj->num_el) {
42 if (idx == obj->num_el-1) {
46 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
57 obj->el_size*(obj->num_el - idx), obj->array,
58 (idx+1)*obj->el_size, idx*obj->el_size);
61 memmove(obj->array + idx*obj->el_size,
62 obj->array + (idx+1)*obj->el_size,
63 obj->el_size*(obj->num_el - idx));
65 bcopy(obj->array + (idx+1)*obj->el_size,
66 obj->array + idx*obj->el_size,
67 obj->el_size*(obj->num_el - idx));