exclude_array.c

final_realms_fluffos_v1/lib/secure/simul_efun/exclude_array.c · 279 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

varargs mixed *exclude_array(mixed *arry, int from, int to) {
    mixed *bottom, *top;

    bottom = ({});
    top = ({});
    if(!to) to = from;
    if(from > 0) bottom = arry[0..from -1];
    if(to < sizeof(arry)-1) top = arry[to+1..sizeof(arry)-1];
    return bottom + top;
}

Site Stats

Snippets: 1791
Codebases: 571