Ignore:
Timestamp:
Jan 4, 2009, 4:29:44 PM (12 years ago)
Author:
charles
Message:

(trunk libT) new peer request fifo queue with log(N) search time. new unit tests for the queue. new utility tr_lowerBound()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r7592 r7609  
    315315    return tr_strndup( in, in ? strlen( (const char*)in ) : 0 );
    316316}
     317
     318/* @brief same argument list as bsearch() */
     319int tr_lowerBound( const void * key,
     320                   const void * base,
     321                   size_t       nmemb,
     322                   size_t       size,
     323                   int       (* compar)(const void* key, const void* arrayMember),
     324                   tr_bool    * exact_match );
     325
    317326
    318327char*       tr_strdup_printf( const char * fmt,
Note: See TracChangeset for help on using the changeset viewer.