Ignore:
Timestamp:
Sep 25, 2006, 6:37:45 PM (15 years ago)
Author:
joshe
Message:

Merge nat-traversal branch to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r815 r920  
    3131#define tr_inf( a... ) tr_msg( TR_MSG_INF, ## a )
    3232#define tr_dbg( a... ) tr_msg( TR_MSG_DBG, ## a )
    33 void tr_msg  ( int level, char * msg, ... );
     33void tr_msg  ( int level, char * msg, ... ) PRINTF( 2, 3 );
    3434
    3535int  tr_rand ( int );
     
    4444 **********************************************************************/
    4545int tr_mkdir( char * path );
     46
     47/***********************************************************************
     48 * tr_strcasecmp
     49 ***********************************************************************
     50 * A case-insensitive strncmp()
     51 **********************************************************************/
     52#define tr_strcasecmp( ff, ss ) ( tr_strncasecmp( (ff), (ss), -1 ) )
     53int tr_strncasecmp( const char * first, const char * second, int len );
     54
     55/***********************************************************************
     56 * tr_sprintf
     57 ***********************************************************************
     58 * Appends to the end of a buffer using printf formatting,
     59 * growing the buffer if needed
     60 **********************************************************************/
     61int tr_sprintf( char ** buf, int * used, int * max,
     62                const char * format, ... ) PRINTF( 4, 5 );
     63/* gee, it sure would be nice if BeOS had va_copy() */
     64int tr_vsprintf( char **, int *, int *, const char *, va_list, va_list );
     65
     66/***********************************************************************
     67 * tr_dupstr
     68 ***********************************************************************
     69 * Creates a nul-terminated string
     70 **********************************************************************/
     71char * tr_dupstr( const char * base, int len );
    4672
    4773/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.