Changeset 490


Ignore:
Timestamp:
Jun 5, 2006 11:09:26 PM (18 years ago)
Author:
ismangil
Message:

Added snprint/vsnprintf wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/symbian/pjlib/include/pj/compat/string.h

    r326 r490  
    6868#define pj_ansi_strnicmp        strncasecmp 
    6969#define pj_ansi_sprintf         sprintf 
     70#define pj_ansi_vsprintf        vsprintf 
     71 
     72#if defined(PJ_HAS_NO_SNPRINTF) && PJ_HAS_NO_SNPRINTF != 0 
     73#   include <pj/types.h> 
     74#   include <pj/compat/stdarg.h> 
     75    PJ_DECL(int) snprintf(char *s1, pj_size_t len, const char *s2, ...); 
     76    PJ_DECL(int) vsnprintf(char *s1, pj_size_t len, const char *s2, va_list arg); 
     77#endif 
     78 
    7079#define pj_ansi_snprintf        snprintf 
    71 #define pj_ansi_vsprintf        vsprintf 
    7280#define pj_ansi_vsnprintf       vsnprintf 
     81 
    7382 
    7483#define pj_unicode_strcmp       wcscmp 
Note: See TracChangeset for help on using the changeset viewer.