Ignore:
Timestamp:
Nov 30, 2009, 1:31:05 AM (12 years ago)
Author:
livings124
Message:

inline tr_removeElementFromArray()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r9621 r9640  
    14071407    return 0;
    14081408}
    1409 
    1410 /***
    1411 ****
    1412 ***/
    1413 
    1414 void
    1415 tr_removeElementFromArray( void * array, int index_to_remove,
    1416                            size_t sizeof_element, size_t nmemb )
    1417 {
    1418     char * a = array;
    1419 
    1420     memmove( a + sizeof_element * index_to_remove,
    1421              a + sizeof_element * ( index_to_remove  + 1 ),
    1422              sizeof_element * ( --nmemb - index_to_remove ) );
    1423 }
Note: See TracChangeset for help on using the changeset viewer.